WTFender / aws-sso-extender

Browser Extension for AWS SSO / Identity Center
https://wtfender.com/posts/aws-sso-extender
MIT License
64 stars 11 forks source link

Keep the URL of the currently open tab when switching accounts #161

Open j-smz opened 2 weeks ago

j-smz commented 2 weeks ago

Current behavior is to always go to home when switching accounts.

After using this extension for a few days, I often felt that I wanted to open the same page of other accounts when using many accounts.

I suggest changing the behavior to retain the URL of the currently open tab when switching accounts.

(Related to another developer's suggestion in #141 to add default region and default page as options for this extension.)

The original implementation had a transition to ${ssoDirUrl}/custom/${appProfileName}/${appProfilePath};, but I am not sure if I should remove this, please advise.

https://github.com/user-attachments/assets/3407c0f8-3275-4f89-a232-5e947da34a26

WTFender commented 2 weeks ago

@j-smz good idea - let me test with IAM roles and I'll see if I can get it added.

j-smz commented 2 weeks ago

I forgot to debug about the switch role because I don't use it. I tried it and found a bug, so I fixed.

https://github.com/user-attachments/assets/d3dc0cdf-f2bb-4130-b75e-789054f7e1fe