app/.env.docker-example: Added additional COGNITO variables. By default, COGNITO is not enabled so variables aree commented out.
rename jwt.py to jwt_hander.py to disambiguate from Python package "jwt"
settings.py:
add settings required by allauth package
change utils.jwt to utils.jwt_handler
app/core/api/url_methods.py: Created cognito_login method for rendering cognito_login page and apssing variables to the page.
app/peopledepot/urls.py: new "accounts/login" url that calls custom_redirect_login method in url_methods.py
requirements.txt: changes required by allauth
app/templates/accounts/cognito_redirect_login.html: redirects to a different page used for just logging into Amazon Cognito. Avoids having to hid button twice.
start-local.sh: remove call to loadenv.sh, as this was failing if path not set. WIll have separate PR to fix so can call loadenv.sh from start-local.sh
Why did you make the changes?
See issue #323
What testing is recommended?
Deploy
set up Docker or get needed information about existing set up
If you have configured Cognito to require email verification, you will get an email.
To test more than once, you can use the same gmail account with slight variations by either adding a period (.) anywhere or adding + after the username portion. Gmail ignores both. Example: ethan.strominger2@gmail.com, ethanstrominger2+1@gmail.com, and ethanstrominger2@gmail.com all work and send to the same gmail account
Grant privileges using local admin account
log in as an admin using local login
grant new user superuser and staff options
SSO sign in
Log in with SSO created previously. You will be directed to the admin page.
Fixes #323
323
Related issues:
336
What changes did you make?
Files:
Why did you make the changes?
See issue #323
What testing is recommended?
Deploy