fangli / django-saml2-auth

Django SAML2 Authentication Made Easy. Easily integrate with SAML2 SSO identity providers like Okta
Other
504 stars 223 forks source link

Running SAML2 for Okta on a local server pointing to the production database #159

Open hugokitano opened 3 years ago

hugokitano commented 3 years ago

Hi there, thanks for this package. I'd like to be able to run the server locally while pointing at the production database. For our specific production database, we have the following lines of code

'ASSERTION_URL': 'http://our-url.com, # Custom URL to validate incoming SAML requests against
'ENTITY_ID': 'our-url.com/saml2_auth/acs/', # Populates the Issuer element in authn request

When I try to run python manage.py runserver --settings=settings.production and expect to use the development server at http://127.0.0.1:8000/, I get redirected to the url above instead of the local port. What's the best way to deal with this?