Automate UI Login with a vault token.

137 views
Skip to first unread message

Pal Saurabh

unread,
Jun 29, 2018, 12:49:44 PM6/29/18
to Vault
Hello,

We are trying to figure out how to login as user directly to the UI given that they already have a token. The flow is pretty straight forward:

1. On page A(outside of Vault UI) the user generates a token.
2. Redirect the user to the Vault UI with this token allowing user to be logged-in directly and *not* having to press the 'SignIn' button manually.

We have tried a few options after going through the auth-form action(https://github.com/hashicorp/vault/blob/master/ui/app/components/auth-form.js)
But none seem to work.

Any suggestions on how this could be achieved, if there is a possible way?

Thank you!

Matthew Irish

unread,
Jun 29, 2018, 3:09:20 PM6/29/18
to vault...@googlegroups.com
Hi Pal!

This isn't currently possible, but I'm currently implementing the workflow described here: https://github.com/hashicorp/vault/issues/4834#issuecomment-400097421 . If you subscribe to that issue, I'll be sure to close it out once the code is merged.

Thanks!
Matthew

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/0e5f15c5-c0c5-4139-90f5-c35006143d83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pal Saurabh

unread,
Jul 1, 2018, 2:13:06 PM7/1/18
to Vault
Thank you Matthew. This workflow will be really helpful!

Regards.
- Saurabh Pal
Reply all
Reply to author
Forward
0 new messages