Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eregcsc 2012 initial logins from eua #991

Merged
merged 20 commits into from
Oct 16, 2023

Conversation

peggles2
Copy link
Contributor

Resolves #EREGCSC-2012

Description-
This pull request updates the admin panel code to receive the okta values that are returned.
If the user has any jobcode their status is automatically set to 'active' for now.
If the user does not have any jobcode the user is not created in the db.
When a user signs in, if they already have an account their account just gets updated.

  • Update the README file
  • bugfix on euasettings.py
  • update admin.py to create/update the user and to give user 'active' access if they have any jobcodes.
  • write tests

Steps to manually verify this change...

  1. visit /admin page

  2. click on eua link

  3. sign into eua

  4. notice you get redirected to admin panel with this message:
    Screen Shot 2023-10-10 at 1 38 56 PM

  5. sign into admin panel with an admin account

  6. click on users and notice the user is listed there.

  7. click on the users name
    Screen Shot 2023-10-11 at 10 09 51 AM

  8. The user has active status but not admin.
    Screen Shot 2023-10-11 at 10 10 05 AM

  9. Give the user admin access.

  10. sign out

  11. sign back in with eua, notice you now are in the admin panel through eua.

@peggles2 peggles2 temporarily deployed to dev October 11, 2023 17:45 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 17:59 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 18:12 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 18:12 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 18:26 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 11, 2023 19:00 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 19:03 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 19:13 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 19:13 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 11, 2023 19:18 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 12, 2023 18:34 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 12, 2023 18:37 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 12, 2023 18:43 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 12, 2023 18:43 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 12, 2023 18:48 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 12, 2023 23:47 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 12, 2023 23:50 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 12, 2023 23:54 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 12, 2023 23:54 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 12, 2023 23:59 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 03:24 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 13, 2023 03:42 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 03:45 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 03:50 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 03:50 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 13, 2023 03:56 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 13:09 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 13:12 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 13:17 — with GitHub Actions Inactive
@peggles2 peggles2 temporarily deployed to dev October 13, 2023 13:17 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 temporarily deployed to dev October 13, 2023 13:21 — with GitHub Actions Inactive
@peggles2 peggles2 added the Needs Review This PR needs a code review label Oct 13, 2023
Copy link
Contributor

@cgodwin1 cgodwin1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@peggles2 peggles2 merged commit 1116715 into main Oct 16, 2023
@peggles2 peggles2 temporarily deployed to dev October 16, 2023 20:44 — with GitHub Actions Inactive
@peggles2 peggles2 removed the Needs Review This PR needs a code review label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants