Skip to content
New issue

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

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

Already on GitHub? # to your account

Working without frontend :) #92

Closed
eusonlito opened this issue Sep 8, 2020 · 2 comments
Closed

Working without frontend :) #92

eusonlito opened this issue Sep 8, 2020 · 2 comments

Comments

@eusonlito
Copy link

eusonlito commented Sep 8, 2020

I currently have a project connected with dropbox and google drive with oauth and all my connection is only using backend code.

  1. My backend detect is user has a token on database related to service.
  2. If token not exists, backend generate an auth url to oauth service (dropbox and google) with a redirect_url parameter to manage responses.
  3. Backend check parameters (state and code) and generate an api token, as an usual on oauth services.
  4. I have working all oauth process also with token refresh.

I'm coding a PHP API service to Pizzly based on your node service to release on finish.

  • Can I do this process using Pizzly without frontend code?
  • Can I get an Pizzly URL to send my users to be authenticated with oauth?
  • Can Pizzly redirect to a redirect_url after that with the authId?

Once backend has a user authId I can connect my backend with Pizzly using my PHP service.

Thanks!

@Frenchcooc
Copy link
Contributor

@eusonlito Pizzly works great for both backend and frontend applications.

The only caveat with backend is that at some point you will need to prompt an authorization modal to the user. This needs to be managed by some frontend code (JS). But once you've an authId it's totally manageable from the backend.

PS: I might have not well understood what you're trying to achieve. If that's the case, I'm really sorry! Feel free to explain further or add a schema / diagram of the whole flow. That might be easier!

@Frenchcooc
Copy link
Contributor

@eusonlito closing this issue as I haven't heard back from you. Feel free to open a new one if you still need help

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants