Description
Is your feature request related to a problem? Please describe.
It could be useful to allow overriding the UrlExecCommand
for SSO auth. This could either be used to configure a different browser or be used for scripting.
Browser example: Launching Chrome in a specific profile
Scripting example: As mentioned in #524 I'd like to send the auth url to a script that relays it to a separate machine where my password safe and yubikey are located.
Describe the solution you'd like
Introduce a config option AuthUrlExecCommand
similar to AuthUrlAction
(overriding UrlAction
). This could be either on global level or SSO-specific config or both:
SSOConfig:
<Name of AWS SSO>:
AuthUrlAction: [clip|exec|print|printurl|open|granted-containers|open-url-in-container]
AuthUrlExecCommand:
- <command>
- <arg 1>
- <arg N>
- "%s"
AuthUrlExecCommand:
- <command>
- <arg 1>
- <arg N>
- "%s"
On a related note: I think it could be useful to have AuthUrlAction
available globally, too.
Describe alternatives you've considered
Workarounds:
- Setting
UrlExecCommand
globally to a script that determines how to proceed based on the specific url. - Setting the new config option
AuthUrlAction
toopen
and packaging a script into an .app so that it can be called withopen -a foo.app
(see open-golang) via theBrowser
config.
Implementation alternatives:
- Allowing overriding the global
UrlExecCommand
similar toDefaultRegion
which can be set on every config level (SSO, Account, Role). Downside: massive config overhead.
Additional context