How to specify a browser to choose when using oidc method for vault login

I am using vault client on WSL debian…and when i try to login as follows

Complete the login via your OIDC provider. Launching browser to:

    https://login.microsoftonline.com/fa7b1b5a-7b34-4387-94ae-d2c178decee1/oauth2/v2.0/authorize?client_id=b43580d5-5377-4037-8b32-117ce5da2fac&code_challenge=KxalKMFS8_ICodksTWPfGzDy_Z_HZ4lrXYgMaiinMEU&code_challenge_method=S256&nonce=n_4ZtVQ6qqwBWXfHLTdAJS&redirect_uri=http%3A%2F%2Flocalhost%3A8250%2Foidc%2Fcallback&response_type=code&scope=openid+https%3A%2F%2Fgraph.microsoft.com%2F.default&state=st_k2bSLXvceXTpgeBsfHPX


Error attempting to automatically open browser: '1 error occurred:
        * exec: "cmd.exe": executable file not found in $PATH

'.
Please visit the authorization URL manually.Waiting for OIDC authentication to complete...

It is looking for cmd.exe…
I firefox installed at /usr/bin/firefox…
I tried declaring BROWSER variable to point to firefox binary…Still it does not work…
How can a specify browser to use…Else how do i get auth URL so that i can open it in browser of my choice in bash shell script.

Hi @hparmar,

Could you please provide your allowed redirect URIs?

This issue is not related to the browser—you can use any browser like Chrome or Firefox.

The key factor here is the allowed redirect URIs , as they determine where authentication responses can be sent.

Thx @Nivedita-coder I see that actual call behind the hood is made to
https://github.com/pkg/browser/blob/master/browser.go: OpenURL
and there by to openBrowser…however as you pointed out allowed redirect URIs instead of sending it to browser/browser_linux.go at master · pkg/browser · GitHub is sending it to browser/browser_windows.go at master · pkg/browser · GitHub on my WSL debian?
I am investigating as to why…Do let me know if you have pointers.