Vault: Option to display current token in Vault UI

Created on 25 Apr 2018  路  2Comments  路  Source: hashicorp/vault

Hello!

I'm loving the newly open sourced UI for Vault! However, I've noticed it's lacking the ability to display the current authentication token to the user. I sometimes need to log into the UI with userpass and use the token I'm issued to do some other API work.

Alternatives would be to either install the Vault CLI on my local machine and do vault login -method=userpass ..., or monitor the web browser's requests and grab the token from HTTP headers.

I hope this is a small and simple change that will add a ton of convenience to the Vault UI.

Thanks for your consideration!

ui

Most helpful comment

Hi! We still want to do this eventually, but the UI Console in 0.10.2 that was released today makes this easier with read -field=id auth/token/lookup-self - and you may even be able to just do your extra API calls there in the UI.

All 2 comments

We had this issue too, and for now, we're using a bookmarklet like this to expose the token:

javascript:alert(JSON.parse(localStorage.getItem(localStorage.key(0))).token)

Hi! We still want to do this eventually, but the UI Console in 0.10.2 that was released today makes this easier with read -field=id auth/token/lookup-self - and you may even be able to just do your extra API calls there in the UI.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andris9 picture andris9  路  3Comments

frntn picture frntn  路  3Comments

maxsivanov picture maxsivanov  路  3Comments

adamroddick picture adamroddick  路  3Comments

Wonder007 picture Wonder007  路  3Comments