# Hashicorp Vault with KeyCloak identity provider

**URL:** <https://forum.keycloak.org/t/hashicorp-vault-with-keycloak-identity-provider/3719>\
**Category:** Getting advice\
**Tags:** oidc\
**Created:** [July 10, 2020, 8:15am UTC](https://forum.keycloak.org/t/hashicorp-vault-with-keycloak-identity-provider/3719 "2020-07-10T08:15:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sf-greensill](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sf-greensill/32/1250_2.png) [@sf-greensill](https://forum.keycloak.org/u/sf-greensill)\
**Post date:** [July 10, 2020, 8:15am UTC](https://forum.keycloak.org/t/hashicorp-vault-with-keycloak-identity-provider/3719/1 "2020-07-10T08:15:22Z")

</div>

Hi Everyone,

I may have the wrong end of the stick.

My goal is to use an external identity provider to manage users and control access to a Hashicorp Vault server.

Vault supports the OIDC authentication mechanism. Using an initial access token from KeyCloak, Vault has connected to KeyCloak, where a client has been configured with callback URIs set.

Then in Vault, when the user attempts to login they’re not offered a redirect link to KeyCloak. I believe that KeyCloak might be wanting to broker with an external identity provider.

I have also created a keycloak-oidc identity provider pointing to localhost but this has not helped.

What am I doing wrong?

Any guidance or advise would be gratefully received.

Thank you.

---

<div class="post-metadata">

**Author:** ![sf-greensill](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sf-greensill/32/1250_2.png) [@sf-greensill](https://forum.keycloak.org/u/sf-greensill)\
**Post date:** [July 15, 2020, 2:35pm UTC](https://forum.keycloak.org/t/hashicorp-vault-with-keycloak-identity-provider/3719/2 "2020-07-15T14:35:46Z")

</div>

This is now resolved and the answer may be found over [here](https://discuss.hashicorp.com/t/error-authenticating-unable-to-authorize-role-oidc/11314/12).

Thank you.
