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

chore(auth): update auth plugin impl and config state machine to use AuthOutputs instead of Auth config #5456

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

NikaHsn
Copy link
Member

@NikaHsn NikaHsn commented Sep 13, 2024

Issue #, if available:

Description of changes:

  • Update auth plugin impl to remove the use of CognitoUserPoolConfig and CognitoIdentityCredentialsProvider instances from the dependency manager and instead use AuthOutputs instance from the dependency manager.
  • Update the configuration state machine to remove the use of AuthConfiguration and not adding it and its properties to the dependency manager.
  • Delete the auth_configuration.dart file

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@NikaHsn NikaHsn requested a review from a team as a code owner September 13, 2024 23:37
@NikaHsn NikaHsn force-pushed the chore/auth-plugin-and-config-state-machine branch 2 times, most recently from 7072cba to aa54b99 Compare September 16, 2024 21:12
@NikaHsn NikaHsn force-pushed the chore/auth-plugin-and-config-state-machine branch from aa54b99 to a190fe5 Compare September 17, 2024 16:58
if (clientSecret != null) {
b.secretHash = computeSecretHash(
username,
_userPoolConfig.appClientId,
_authOutputs.userPoolClientId!,
Copy link
Member

Choose a reason for hiding this comment

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

Q: do we need a proper null check before force unwrapping _authOutputs.userPoolClientId!?

Copy link
Member Author

Choose a reason for hiding this comment

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

we have a check when we get the _authOutputs from the dependency manager. it is line128

@NikaHsn NikaHsn merged commit 718068a into main Sep 18, 2024
77 checks passed
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.

3 participants