Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set your custom backend URL from the app. #1286

Open
josancamon19 opened this issue Nov 11, 2024 · 8 comments
Open

Set your custom backend URL from the app. #1286

josancamon19 opened this issue Nov 11, 2024 · 8 comments
Assignees

Comments

@josancamon19
Copy link
Contributor

No description provided.

@josancamon19 josancamon19 self-assigned this Nov 11, 2024
@josancamon19 josancamon19 converted this from a draft issue Nov 11, 2024
@josancamon19
Copy link
Contributor Author

  1. Requires new authentication method, so will set-up sign up/sign in pages, if the user sets a custom backend URL
  2. modify the backend auth logic too, to handle this email/pwd in header
  3. Prob still use firebase auth as source of truth.

Fuck, prob wouldn't still work, very complex.
Firebase doesn't allow to download the credentials files on the go, does it?

@beastoin
Copy link
Collaborator

haha yes, you got it bro.

@josancamon19
Copy link
Contributor Author

  • Authentication must be email/password

  • Sign up / sign in backend endpoints

  • Auth middleware on back should be able to handle email/pwd prob using jwt but /token and /refresh endpoints, manually generating the jwt

  • App must have sign in / sign up forms

  • on default sign in page, option to custom backend URL, once is set, local pref must be stored, and the alternative sign in sign up page must be shown instead of google or apple

  • on auth, http requests must be done using this email/pwd jwt token generated.

  • Clear instructions.

@josancamon19
Copy link
Contributor Author

On the back will still use signInWithPassword shit

@beastoin
Copy link
Collaborator

bruh, do you think it's super important to have ? because rn i don't think so, sry :{

@mdmohsin7
Copy link
Collaborator

[ ] Authentication must be email/password

I think we can still use sign in with google / apple even if we move auth to the backend. Sign in with google/apple will generate only claims that are validated on the backend I guess

@beastoin
Copy link
Collaborator

beastoin commented Nov 25, 2024

my expectation is when this ticket done we could help the backend dev onboarding faster.

sry i dont think the end user would use this feature to link Omi mobile app with their backend - mainly because they would not willing/don't have the ability to host the backend them self.

now, the app dev could build the app with 01 command line setup.sh, the complexity of building the app have been reduced af.

then my assumption is, the backend dev's journey would be:
1/ build the backend themself, they dont need to build the app.
2/ if they need to test their backend with the app, they would:

  • build the app - setup.sh to see how's it work with omi dev backend (~2 hours)
  • try to replicate it with their backend (30' with the setup.sh + Omi doc)

that's why...

because rn i don't think so, sry :{

@josancamon19
Copy link
Contributor Author

It would not be for existing users, it'd be to test a possible target user that actually works, I'm moving back to no status anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants