stikkireddy / dbtunnel

Proxy solution to run elegant Web UIs or interact with LLMs natively inside databricks notebooks.
https://stikkireddy.github.io/dbtunnel/
Apache License 2.0
18 stars 7 forks source link

OAuth Support #9

Open stikkireddy opened 7 months ago

stikkireddy commented 7 months ago

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.