Skip to content

Commit

Permalink
add aws-cn saml endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ri0day authored Apr 7, 2024
1 parent 6900586 commit 734a415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe("AwsSamlAssertionExtractionService", () => {
expect(service.isSamlAssertionUrl(CloudProviderType.aws, "https://signin.aws.amazon.com/saml")).toBe(true);
expect(service.isSamlAssertionUrl(CloudProviderType.aws, "https://signin.aws.amazon.com/saml?XX")).toBe(true);
expect(service.isSamlAssertionUrl(CloudProviderType.aws, "http://signin.aws.amazon.com/saml")).toBe(false);
expect(service.isSamlAssertionUrl(CloudProviderType.aws, "https://signin.amazonaws.cn/saml")).toBe(true);
});

test("extractAwsSamlResponse", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const authenticationUrlRegexes = new Map([
]);

const samlAssertionRegexes = new Map([
[CloudProviderType.aws, [/^https:\/\/signin\.aws\.amazon\.com\/saml/, /^https:\/\/signin\.amazonaws-us-gov\.com\/saml/]],
[CloudProviderType.aws, [/^https:\/\/signin\.aws\.amazon\.com\/saml/, /^https:\/\/signin\.amazonaws-us-gov\.com\/saml/, /^https:\/\/signin\.amazonaws\.cn\/saml/]],
]);

export class AwsSamlAssertionExtractionService {
Expand Down

0 comments on commit 734a415

Please sign in to comment.