widgetti/solara

Oauth2, FastAPI, and Solara

Open

#157 aperta il 17 giu 2023

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)Python (188 fork)github user discovery
buggood first issue

Metriche repository

Star
 (2163 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

I did my best to search the docs, but I wasn't able to find an answer.

I want to implement Solara into a FastAPI application.

I also want to use Auth0 in the Solara application.

I admittedly not super knowledgeable about auth.

I tried following the docs on Auth0, and I cannot seem to get it to work. I suspect it is because the get_login_url is effectively hard coding the login URL. This means that if I mount Solara to a different path, then the auth endpoint seems like it might not work.

Is this correct? Is there a better workaround for this?

Also, love the project. I have built APIs in the past, and I have always thought a good Python frontend framework was lacking. I was considering using Anvil, but I hate using anything that isn't open source and free to use. Keep up the good work.

Guida contributor