Questions tagged [django-saml2-auth]

14 questions
2
votes
1 answer

Django + Okta + django_saml2_auth Forbidden (CSRF cookie not set.) 403

Created a saml application in Okta for local testing. Django side I'm using plugin django_saml2_auth (https://github.com/fangli/django-saml2-auth) to authenticate with Okta. When I open the application from Okta app, Django throws below…
user3369417
  • 358
  • 1
  • 4
  • 17
2
votes
1 answer

djangosaml2 authenticates user but I get anonymous user in my view

I am using djangosaml2 to authenticate my users. I've been using it for a long time now with no problem. I am currently in the process of upgrading Python and Django to newer versions and the authentication does not work anymore. Using the logs, I…
OritK
  • 554
  • 1
  • 7
  • 16
2
votes
0 answers

Does django-saml2-auth support share tokens between service providers (SPs)?

First of all, SAML noob here. Does django-saml2-auth support tokens being shared between Service Providers (SPs)? Eg. Service provider A can perform an API request with a SAML token (issued by same IdP) to Service provider B, so the request is…
James Lin
  • 25,028
  • 36
  • 133
  • 233
1
vote
1 answer

Django SAML Auth giving error as Sorry, you are not allowed to access this app

I am trying to Integrate SSO authentication using grafana-django-saml2-auth My SAML_AUTH files looks like below SAML2_AUTH = { 'METADATA_LOCAL_FILE_PATH': os.path.join(BASE_DIR,'ssometadata.xml'), 'DEBUG': False, # Send debug information to a log…
1
vote
1 answer

django-saml2-auth: Infinite Redirects on Login

I'm completely new to django-saml2-auth (and SAML2 with Django in general) and am trying to get it working with Microsoft ADFS. When I hit my Django app it successfully redirects me to the federated login page, but after providing valid credentials,…
Matt Woodward
  • 229
  • 1
  • 10
0
votes
0 answers

TypeError at /saml2/ls/post/ Not a logout_response

I am trying to setup django with saml2 for sso with okta. In okta settings I have Single Logout URL: http://localhost:8000/saml2/ls/post/ SP Issuer : http://localhost:8000/saml2/metadata/ as per the documentation. In my settings.py I have the…
0
votes
0 answers

djangosaml2idp logout throwing ServiceError exception: 'str' object has no attribute 'destination'

I am trying to implement SAML in Django and I have two servers example.com and idp.example.com. On the IDP server, I am using djangosaml2idp. I have been able to implement the login functionality successfully, but the logout is failing on the IDP…
Rakesh Kumar
  • 71
  • 1
  • 11
0
votes
0 answers

django-saml2-auth ?next= redirect not working

i am using django-saml2-auth 2.2.1 to authenticate users logging into my django web apps. before i was doing this, i was using a regular username/password login form. in settings.py, I had this LOGIN_URL = reverse_lazy('myapp:login') and an…
anp925
  • 59
  • 4
0
votes
0 answers

Heroku Build Error: Unable to load xmlsec-openssl library

I was in the process of trying to update my team's app from heroku-18 stack to heroku-22. Due to the Python version that supports heroku-22, I had to update to Python 3.9.16 too and as well as one of the Python build-packs for Django SAML2…
0
votes
1 answer

Django Single sign on (okta): you are not allowed to access this app

I have a very simple Django test app running to try and integrate SSO using Okta as IDP. I am using the Django-saml2-auth library for django sso. When I open the sso related pages im getting the following screen (you are not allowed to access this…
Mart
  • 1
  • 1
0
votes
1 answer

Redirect loop in django-saml2-auth-ai and in djangosaml2

Good afternoon experts, I am trying to implement SAML authentication in my web app. I tried to use django-saml2-auth-ai and in djangosaml2 libraries but I got into a redirect loop for both libraries. django-saml2-auth-ai (2.1.6) urls.py: …
Viktor
  • 1,325
  • 2
  • 19
  • 41
0
votes
1 answer

djangosaml2idp problems with launch: saml2.sigver.MissingKey: http://localhost:8000/saml2/metadata/

I'v been trying to launch project(example_setup folder): https://github.com/OTA-Insight/djangosaml2idp/tree/master/example_setup I can anybody answer to men according with documentation. But it does not working. First problem, as I undesrtand is in…
0
votes
1 answer

ModuleNotFoundError at /saml_auth2/acs/

I am using Django_Saml2_Auth. I am getting the below error. ModuleNotFoundError at /saml_auth2/acs/ No module named 'path' Request Method: POST https://127.0.0.1:8000/saml_auth2/acs/ 3.0.10 ModuleNotFoundError No module named 'path' in…
Sathiamoorthy
  • 8,831
  • 9
  • 65
  • 77
0
votes
1 answer

SAML 2.0 + Keycloak + Django

Hello I'm trying to implement Keycloak SAML 2.0 authentication with Django application. I'm using django_saml2_auth and I configured my project as I was instructed in the django_saml2_auth repo. My configuration of django_saml2_auth is: SAML2_AUTH =…
tpszer
  • 53
  • 1
  • 6