tilfinltd / aws-extend-switch-roles

Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
https://chromewebstore.google.com/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl?utm_source=github
MIT License
1.32k stars 141 forks source link

Switch Role fails if there is no role history #116

Closed timcleaver closed 3 years ago

timcleaver commented 5 years ago

If the user doesn't have an entry in the native AWS console role history list then none of the switch role links will work. They are missing the csrf token in the form request. When a switch role link is clicked the user is sent to the 400 Bad Request page.

A user may not have any roles in the native history list if:

Perhaps the configured switch role links should not be shown or shown as disabled (grayed out) if the csrf token cannot be extracted?

tilfin commented 5 years ago

It has already been dealt with by https://github.com/tilfin/aws-extend-switch-roles/blob/master/src/lib/content.js#L49, but the behavior of AWS MC may have changed.