Hello everyone

I've tried getting my question answered by the folks over django-users but 
when searching the archives I didn't feel that I would get a sufficient 
response there. 

On my current project I need a mix of builtin Django authentication and 
oAuth2 sources. But when writing a custom authentication backend, when does 
it get used? The docs say: 

"""Once a user has authenticated, Django stores which backend was used to 
authenticate the user in the user's session, and re-uses the same backend 
for the duration of that session whenever access to the currently 
authenticated user is needed."""

The code of ModelBackend only seems to deal with permissions. Assuming an 
oAuth2 source deals with authentication my backend should only handle 
permission checks? 

Thanks for taking the time to answer this. 

Kind regards
Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/UeWpZ7m5kQYJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to