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

OAuth Support #9

Open
stikkireddy opened this issue Jan 31, 2024 · 0 comments
Open

OAuth Support #9

stikkireddy opened this issue Jan 31, 2024 · 0 comments

Comments

@stikkireddy
Copy link
Owner

  • Support for Auth Code flow (can implement PKCE support later)
  • No support for offline mode (no refresh tokens)
  • Users will have to re log every hour, etc the default expiration for oauth token.

HLD

  1. Sample login page with oauth url
  2. Redirects to databricks login
  3. Databricks redirects to driver url with token with code, etc proper oauth headers for Auth Code flow
  4. ASGI proxy retrieves and exchanges for oauth token and saves in login cache
  5. ASGI proxy for any further request will pass those oauth tokens to the app as headers as it intercepts requests

This flow is very similar to simple auth but now the tokens only last N hours.

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

No branches or pull requests

1 participant