-
I have a simple fastapi app with the sqladmin backend for which I'd like to enable a SSO login functionality. But somehow I'm unable to redirect to the authentication_url of my OIDC provider. I'm using authlib as oauth client From my understanding when accessing /admin the If I call the Thanks a lot for your valuable inputs.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @simonsax , I'll work on the sample to see what changes are needed. |
Beta Was this translation helpful? Give feedback.
Hi @simonsax ,
First point is that I had not considered this at all, so there so there might be some missing pieces.
And second point is that you can check here: https://github.com/aminalaee/sqladmin/blob/main/sqladmin/authentication.py#L54
that for each request the
AuthenticationBackend .authenticate
method is called, and as you said it expects a boolean.I suppose you are using a Authlib, right? https://docs.authlib.org/en/latest/client/
I'll work on the sample to see what changes are needed.