Skip to content

How to implement SSO functionality in admin backend (currently I'm unable to redirect to authorisation_url) #439

Answered by aminalaee
simonsax asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aminalaee
Comment options

@simonsax
Comment options

Answer selected by simonsax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants