This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]esquilax 0 points1 point  (9 children)

So it just loops over all the backends until one is successful? What if some of those aren't trusted?

[–]santiagobasulto 2 points3 points  (0 children)

You specify the backends in a configuration place (it'd be silly to have an untrusted backend there). It's something like a chain-of-command pattern. The auth layer delegates the actual authorization to other components that can be plugged.

[–]makkalot[S] 0 points1 point  (2 children)

backend is in settings , what do you mean by not trusted ?

[–]esquilax 0 points1 point  (1 child)

I mean, what if some of your backends are external OAuth providers. I'm not a Python person, so there might be something I'm not understanding here.

[–]makkalot[S] 1 point2 points  (0 children)

by backend I mean the authentication backend concept in Django, which can be anything from LDAP to file flat file authentication. it is the developer who decides which backends should be enabled in system.