Thursday, December 26, 2019

Re: External SSO for Django

The docs on this are very sparse and unclear. Could you provide an example? Is there a way to easily set it up for both dev and prod?

On Monday, December 23, 2019 at 12:24:25 PM UTC-5, Mohammed Alnajdi wrote:
Django support remote_user coming from web-server [apache, nginx] you could use apache and the apache module for saml called mod_auth_mellon to let the web-server handle authentication and with remote_user in django users will be created in your application.


On Mon, Dec 23, 2019 at 11:49 AM Daniel Chimeno <dan...@chimeno.me> wrote:
Also interested

El lunes, 23 de diciembre de 2019, 4:14:21 (UTC+1), Malik Brahimi escribió:
Just had a question about integrating external auth with my React/Django application. I'm using a provisioned client instance from my company so it's not Google, Facebook, or all the other social auth backends that exist as django packages. I'd like to be able to SSO authenticate Django user objects via OAuth or SAML in order to use permissions. Some client libraries don't login Django users because they can simply use the external API on the frontend. Others have no native support for a provider outside the scope of popular social networks. 

I suppose I could just create an api endpoint as a OAuth callback taking the code from the query string, sending a request to exchange the code for a token, decode the token for the userinfo, use the userinfo to either get or create a user, and then login a user. But this is pretty painstaking process. And I'm not sure about the security implications. Is there anything you would suggest? I'm open to using SAML but again I have no idea where to start with Django.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cbc00d32-3fc6-4094-aeec-f23e77cc5505%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ba820556-3c0a-43b3-8eae-d5c26abefe4c%40googlegroups.com.

No comments:

Post a Comment