jonwhittlestone / okta-django-saml2

A Django 1.11 implementation of Single Sign On via Okta.
0 stars 0 forks source link

Seeking help on the setup of Okta SAML2.0 for React Django app #4

Open nithincp opened 10 months ago

nithincp commented 10 months ago

Hi, Came across your repo while searching for the okta saml integration with Django. Can you please let me know if the integration worked for you then. I know its been a while that you worked on this. But any help is appreciated. Thanks

jonwhittlestone commented 10 months ago

Hi @nithincp

Yes, this did work with Okta SAML app and Django auth template (not react), and was using this in a commercial context with:

django-saml2-auth = "^2.2.1"

It was a case of adding the SAML2_AUTH = {...} dict in the settings (as per the library docs) and ensuring ATTRIBTUTES_MAP:{..} is mapped from the SAML attrs to your data model.

I recommend this browser ext

jon.

nithincp commented 10 months ago

Hi Jon,

Very much appreciate your reply.

What about the cert that we are getting from Okta, I dont see that getting used anywhere in the Django project. Is that not needed?

Thanks Nithin

jonwhittlestone commented 10 months ago

Hey there - did you try following something like https://developer.okta.com/docs/guides/build-sso-integration/saml2/main/#deployment-models and use the browser extension mentioned?

Django will be receiving a request to a callback from Okta (the identity provider) containing SAML, which is then parsed by the django-saml2-auth library.

What about the cert that we are getting from Okta,

There are no certs transferred..

nithincp commented 10 months ago

Thank you . I will check this out and let you know.