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

Possibility to add custom identity providers for the Cognito user pool client #379

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions infrastructure/parallelcluster-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Parameters:
Description: UserPoolAuthDomain of a previously deployed PCUI Cognito User Pool. Leave blank to create a new one.
Type: String
Default: ''
UserPoolClientIdentityProviders:
Description: "Comma separated list of provider names for the identity providers (IdPs) that are supported on this client. The following are supported: COGNITO, Facebook, Google, SignInWithApple, and LoginWithAmazon. You can also specify the names that you configured for the SAML and OIDC IdPs in your user pool, for example MySAMLIdP or MyOIDCIdP."
Type: CommaDelimitedList
Default: 'COGNITO'
SNSRole:
Description: SNSRole ARN of a previously deployed PCUI Cognito Stack. Leave blank to create a new one.
Type: String
Expand Down Expand Up @@ -101,6 +105,7 @@ Metadata:
- UserPoolId
- UserPoolAuthDomain
- SNSRole
- UserPoolClientIdentityProviders
- Label:
default: ParallelCluster API
Parameters:
Expand Down Expand Up @@ -416,8 +421,7 @@ Resources:
- !Sub
- https://${Api}.execute-api.${AWS::Region}.${AWS::URLSuffix}/${Stage}/login
- { Api: !Ref ApiGatewayRestApi, Stage: !Ref ApiGatewayRestStage }
SupportedIdentityProviders:
- COGNITO
SupportedIdentityProviders: !Ref UserPoolClientIdentityProviders
UserPoolId: !If [ UseExistingCognito, !Ref UserPoolId, !GetAtt [ Cognito, Outputs.UserPoolId ]]
PreventUserExistenceErrors: ENABLED
RefreshTokenValidity: 7
Expand Down