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

Aut 3601/emit basic auth reauth success event #5242

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

BeckaL
Copy link
Collaborator

@BeckaL BeckaL commented Sep 17, 2024

What

Emits the AUTH_REAUTH_SUCCESS event in the case of a reauth journey that has reached the point of the authentication auth handler, with metadata of the pairwise id.

Note that this PR does not contain all the extensions required by the event schema - adding the incorrect counts will be done in a subsequent PR, since we'd like to do this by way of the new session stored in dynamo.

How to review

  1. Code Review

Related PRs

This event will not be emitted until this PR is also merged on the frontend that adds the necessary information to the auth code request to indicate the journey is a reauth journey. This PR is safe to merge first.

@BeckaL BeckaL requested review from a team as code owners September 17, 2024 11:39
@BeckaL BeckaL force-pushed the AUT-3601/emit-basic-auth-reauth-success-event branch from 215a741 to bd3357e Compare September 17, 2024 12:28
This gets rid of some java boilerplate
…ul reauth journey

Emits a basic event with no extensions - this to follow.

This required:

* setting up the feature flag for this lambda
* Adding a new param to the auth code request (note here that I chose to pass in the boolean of whether or not the journey is a reauth journey, rather than the journey type. This is because passing in the journey type can be somewhat flakey (what if you're resetting a password as part of a reauth journey?) and I don't want to give the false impression that we otherwise have a correct journey type available to us here
* Submitting the audit event in the relevant places

I think that the lamdba already has correct access to the txma queue although it does not already emit audit events, so no extra permissions should be required here
Involved an unholy amount of setup to get this working in tests - would be easier if we were not using the handler method that calls the base frontend handler and sets up a lot of things based on the request, but considering that outside of the scope of the current change
@BeckaL BeckaL force-pushed the AUT-3601/emit-basic-auth-reauth-success-event branch from 8779012 to 5714f81 Compare September 17, 2024 14:41
Copy link

sonarcloud bot commented Sep 17, 2024

@BeckaL BeckaL added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit 82870dd Sep 18, 2024
21 checks passed
@BeckaL BeckaL deleted the AUT-3601/emit-basic-auth-reauth-success-event branch September 18, 2024 08:59
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