fangli/django-saml2-auth

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

hugokitano opened this issue · 0 comments

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?