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

feat: calculate aal without transaction #1437

Merged
merged 3 commits into from
Feb 19, 2024
Merged

Conversation

J0
Copy link
Contributor

@J0 J0 commented Feb 19, 2024

What kind of change does this PR introduce?

First of a few refactoring PRs:

  • Change NewSession to take in a UserID and FactorID
  • Load identities outside of AAL and AMR calculation so CalculateAALAndAMR doesn't touch the database.

This will help with ensuring that the transaction doesn't run for too long and aid with the Hooks Implementation.

@J0 J0 changed the title fix: load identities and remove fetching in calculate aal fix: calculate aal without transaction Feb 19, 2024
@J0 J0 force-pushed the j0/refactor_amr_and_aal_calculation branch from 4539a22 to f41b9c3 Compare February 19, 2024 06:12
@J0 J0 force-pushed the j0/refactor_amr_and_aal_calculation branch from f41b9c3 to 83bfaf7 Compare February 19, 2024 06:13
@J0 J0 marked this pull request as ready for review February 19, 2024 06:21
@J0 J0 requested a review from a team as a code owner February 19, 2024 06:21
@hf hf changed the title fix: calculate aal without transaction feat: calculate aal without transaction Feb 19, 2024
@hf
Copy link
Contributor

hf commented Feb 19, 2024

This is a feat. fix is only for bug fixes.

@J0 J0 merged commit 8dae661 into master Feb 19, 2024
4 checks passed
@J0 J0 deleted the j0/refactor_amr_and_aal_calculation branch February 19, 2024 16:41
J0 pushed a commit that referenced this pull request Feb 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.143.0](v2.142.0...v2.143.0)
(2024-02-19)


### Features

* calculate aal without transaction
([#1437](#1437))
([8dae661](8dae661))


### Bug Fixes

* deprecate hooks
([#1421](#1421))
([effef1b](effef1b))
* error should be an IsNotFoundError
([#1432](#1432))
([7f40047](7f40047))
* populate password verification attempt hook
([#1436](#1436))
([f974bdb](f974bdb))
* restrict mfa enrollment to aal2 if verified factors are present
([#1439](#1439))
([7e10d45](7e10d45))
* update phone if autoconfirm is enabled
([#1431](#1431))
([95db770](95db770))
* use email change email in identity
([#1429](#1429))
([4d3b9b8](4d3b9b8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
hf added a commit that referenced this pull request Feb 26, 2024
#1437 broke the `amr` calculation in the access token as it skipped
including the `provider` for the SAML AMR, which is vital for building
RLS policies.
J0 pushed a commit that referenced this pull request Feb 27, 2024
#1437 broke the `amr` calculation in the access token as it skipped
including the `provider` for the SAML AMR, which is vital for building
RLS policies.
J0 pushed a commit that referenced this pull request Mar 1, 2024
#1437 broke the `amr` calculation in the access token as it skipped
including the `provider` for the SAML AMR, which is vital for building
RLS policies.
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.

None yet

2 participants