pyro2927 / AWS_SSO_Containers

Firefox extension to route AWS SSO logins into unique containers.
https://addons.mozilla.org/en-US/firefox/addon/aws-sso-containers/
63 stars 16 forks source link

Add support for China AWS links #23

Open anebz opened 5 months ago

anebz commented 5 months ago

Currently the containerization doesn't work console.amazonaws.cn. Would be nice to have this added

pyro2927 commented 3 months ago

@anebz do you happen to know what the starting page for the SSO portal is? The manifest looks for .cn links, but if it uses something like subdomain.awsapps.cn/start I can just add that

anebz commented 3 months ago

@pyro2927 it's this ´start.cn-north-1.home.awsapps.cn´ in my case

xelencin commented 2 months ago

The SSO portal URL in a new account I am working on is not in the start.awsapps format, it is: start.home.awsapps.cn/directory/(id-or-instance-name). Additionally the console is cn-northwest-1.signin.amazonaws.cn.

pyro2927 commented 1 week ago

@anebz or @xelencin, would you be able to test an .xpi I could send over with additional URLs added? I don't have access to a CN SSO portal to test.

xelencin commented 1 week ago

@pyro2927 Sure. Adding some more URL details for context. Our global account SSO is based out of us-west-2 and CN account SSO in cn-north-1. This should also apply for cn-northwest-1.

Global: https://COMPANY.awsapps.com/start https://COMPANY.awsapps.com/start/#/console?account_id=############&role_name=ROLENAME https://portal.sso.us-west-2.amazonaws.com/federation/console?account_id=############&role_name=ROLENAME https://console.aws.amazon.com/console/home https://us-west-2.console.aws.amazon.com/console/home?region=us-west-2#

CN: https://start.cn-north-1.home.awsapps.cn/directory/COMPANY https://start.cn-north-1.home.awsapps.cn/directory/COMPANY#/console?account_id=############&role_name=ROLENAME https://console.amazonaws.cn/console/home?region=cn-north-1