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

OIDC Auth refactor and tests for TokenVerification #529

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

bheesham
Copy link
Member

In general:

  • Adding tests for TokenVerification,
  • Making sure the error messages don't error out (and at least have placeholders).

We should consider moving some of this closer to the templates, where we can make better use of Jinja's translation/safety features.

@bheesham bheesham requested a review from a team October 23, 2024 22:56
@bheesham bheesham force-pushed the oidc_auth-refactor-and-test branch 2 times, most recently from 6256834 to bb02fcd Compare October 24, 2024 14:54
Copy link
Contributor

@dividehex dividehex left a comment

Choose a reason for hiding this comment

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

👍 Approved

This commit does not change any app functionality (it's only a rename).

The tests were not running because the class was not named how pytest expects.

Jira: [IAM-1443](https://mozilla-hub.atlassian.net/browse/IAM-1443)
Refactored TokenVerifier to make it easier to test, though there's probably
more we can do here.

The messages may find a better home closer to the templates, but that's a story
for another day.

We should now be resistant to a variety of errors around JWS/JWK (assuming I
didn't miss any branches.)

More tests to come!

Jira: [IAM-1443](https://mozilla-hub.atlassian.net/browse/IAM-1443)
@bheesham bheesham force-pushed the oidc_auth-refactor-and-test branch from bb02fcd to fea64c5 Compare October 24, 2024 19:54
@bheesham bheesham merged commit b2b83e8 into mozilla-iam:master Oct 24, 2024
1 check passed
@bheesham bheesham deleted the oidc_auth-refactor-and-test branch October 24, 2024 20:11
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