-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running inside WSL2 with saml_provider = browser can't launch browser #100
Comments
The code in question that has the bug is roughly here: aws-runas/client/external/browser_client.go Lines 74 to 128 in cd5313f
|
Part of the functionality of this provider is intercepting the request chain which is happening in the browser between the IdP and AWS in order to get the SAML response that aws-runas needs to store to be able to fetch STS credential from AWS. This is accomplished by that The layer of abstraction from WSL means that getting back to an OS-layer browser will be tricky. (Tricky for me at least, I don't use Windows, hence have no way to see how WSL could handle this). The wslview utility won't be much help here, since I don't think we can use that to launch a browser and still be able to get into its guts to intercept the request chain processing. The |
When running inside WSL2 with saml_provider = browser, aws-runas fails to launch any browser, regardless if you pick chrome or msedge.
I think what needs to happen here is that an option for wslview needs to be added from the wslu package.
Or maybe if no auth_browser is provided, or it is set to "default" it could just use the $BROWSER environment variable?
Debug log with -v flag just hangs here:
The text was updated successfully, but these errors were encountered: