Skip to content

Commit

Permalink
fix(auth,core): Added auth userpool endpoint into AmplifyOutputs mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Feb 11, 2025
1 parent a1980f0 commit f37cb7e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class AuthOutputs
required this.awsRegion,
this.userPoolId,
this.userPoolClientId,
this.userPoolEndpoint,
this.appClientSecret,
this.identityPoolId,
this.passwordPolicy,
Expand All @@ -44,6 +45,9 @@ class AuthOutputs
/// The Cognito User Pool Client ID.
final String? userPoolClientId;

/// The Cognito User Pool Endpoint.
final String? userPoolEndpoint; //Gen 1 only

/// A fixed string that must be used in all API requests to the app client
/// if the the app client has one configured.
///
Expand Down Expand Up @@ -84,6 +88,7 @@ class AuthOutputs
awsRegion,
userPoolId,
userPoolClientId,
userPoolEndpoint,
identityPoolId,
oauth,
standardRequiredAttributes,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/amplify_core/lib/src/config/auth/auth_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class AuthConfig extends AmplifyPluginConfigMap {
awsRegion: region,
userPoolId: userPool?.poolId,
userPoolClientId: userPool?.appClientId,
userPoolEndpoint: userPool?.endpoint,
appClientSecret: userPool?.appClientSecret,
identityPoolId: identityPool?.poolId,
passwordPolicy: passwordPolicy,
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify_core/lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ final class ConfigurationStateMachine
region: authOutputs.awsRegion,
credentialsProvider: _credentialsProvider,
dependencyManager: this,
endpoint: authOutputs.userPoolEndpoint,
),
);

Expand Down

0 comments on commit f37cb7e

Please sign in to comment.