widgetti/solara

Oauth2, FastAPI, and Solara

Open

#157 opened on Jun 17, 2023

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Python (188 forks)github user discovery
buggood first issue

Repository metrics

Stars
 (2,163 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide