-
Notifications
You must be signed in to change notification settings - Fork 218
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
Enable SSO login through authorization_grant with PKCE #4461
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.changes/next-release/feature-85915bfd-d136-4381-9dfd-8f147d951b1a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type" : "feature", | ||
"description" : "Improve the SSO login experience by switching to the Authorization Code with PKCE flow" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
339 changes: 339 additions & 0 deletions
339
plugins/core/sdk-codegen/codegen-resources/ssooidc/endpoint-rule-set-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,339 @@ | ||
{ | ||
"version": "1.0", | ||
"parameters": { | ||
"Region": { | ||
"builtIn": "AWS::Region", | ||
"required": false, | ||
"documentation": "The AWS region used to dispatch the request.", | ||
"type": "String" | ||
}, | ||
"UseDualStack": { | ||
"builtIn": "AWS::UseDualStack", | ||
"required": true, | ||
"default": false, | ||
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", | ||
"type": "Boolean" | ||
}, | ||
"UseFIPS": { | ||
"builtIn": "AWS::UseFIPS", | ||
"required": true, | ||
"default": false, | ||
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", | ||
"type": "Boolean" | ||
}, | ||
"Endpoint": { | ||
"builtIn": "SDK::Endpoint", | ||
"required": false, | ||
"documentation": "Override the endpoint used to send this request", | ||
"type": "String" | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "isSet", | ||
"argv": [ | ||
{ | ||
"ref": "Endpoint" | ||
} | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseFIPS" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"error": "Invalid Configuration: FIPS and custom endpoint are not supported", | ||
"type": "error" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseDualStack" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported", | ||
"type": "error" | ||
}, | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": { | ||
"ref": "Endpoint" | ||
}, | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "isSet", | ||
"argv": [ | ||
{ | ||
"ref": "Region" | ||
} | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "aws.partition", | ||
"argv": [ | ||
{ | ||
"ref": "Region" | ||
} | ||
], | ||
"assign": "PartitionResult" | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseFIPS" | ||
}, | ||
true | ||
] | ||
}, | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseDualStack" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
true, | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsFIPS" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
true, | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsDualStack" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "FIPS and DualStack are enabled, but this partition does not support one or both", | ||
"type": "error" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseFIPS" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsFIPS" | ||
] | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "stringEquals", | ||
"argv": [ | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"name" | ||
] | ||
}, | ||
"aws-us-gov" | ||
] | ||
} | ||
], | ||
"endpoint": { | ||
"url": "https://oidc.{Region}.amazonaws.com", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
}, | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "FIPS is enabled but this partition does not support FIPS", | ||
"type": "error" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseDualStack" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
true, | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsDualStack" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "DualStack is enabled but this partition does not support DualStack", | ||
"type": "error" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://oidc.{Region}.{PartitionResult#dnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
], | ||
"type": "tree" | ||
} | ||
], | ||
"type": "tree" | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "Invalid Configuration: Missing Region", | ||
"type": "error" | ||
} | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be initialized as false now? Would it cause a conflict over the registry option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline