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

Fix assigning TrnVerificationLevel for new users #772

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

gunndabad
Copy link
Collaborator

AYTQ has been blowing up for some users with a 403 from the API. After some debugging we find the access token is missing the trn claim. The logic that adds the trn claim omitted it because the User's TrnVerificationLevel was set as Low (and the journey requires Medium), even though they've gone through a journey that should set it to Medium.

This fixes the user creation logic to correctly assign TrnVerificationLevel. It also adds a migration to fix up the data for the users who have encountered this.

@gunndabad gunndabad force-pushed the fix-trnverificationlevel-for-aytq-registrations branch 2 times, most recently from 28ee4e1 to 9561c7e Compare December 5, 2023 17:07
@gunndabad gunndabad force-pushed the fix-trnverificationlevel-for-aytq-registrations branch from 9561c7e to bbde595 Compare December 5, 2023 17:10
@gunndabad gunndabad enabled auto-merge (squash) December 5, 2023 17:14
@gunndabad gunndabad merged commit 85510db into main Dec 5, 2023
8 checks passed
@gunndabad gunndabad deleted the fix-trnverificationlevel-for-aytq-registrations branch December 5, 2023 17:20
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