# Okta OIDC configuration with vcloud director

**URL:** <https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834>\
**Category:** OAuth/OIDC\
**Created:** [September 9, 2022, 7:00pm UTC](https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834 "2022-09-09T19:00:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vichu](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vichu](https://devforum.okta.com/u/vichu)\
**Post date:** [September 9, 2022, 7:00pm UTC](https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834/1 "2022-09-09T19:00:23Z")

</div>

Hello there,  
I am trying to integrate okta oidc with vcloud director which failed with " 400 Bad request Your request resulted in an error. The ‘redirect\_uri’ parameter must be a Login redirect URI in the client app settings: ". I referred this URL [Cloud Director OIDC Configuration using OKTA IDP | VMTECHIE](https://vmtechie.blog/2022/04/05/cloud-director-oidc-configuration-using-okta-idp/) for the configuration and integration. As far as I know I have not missed anything as per the document but still failing. Can someone through your thought/suggestion on this, pls ?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [September 9, 2022, 7:09pm UTC](https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834/2 "2022-09-09T19:09:55Z")

</div>

If you check in your system log, you can find the redirect\_uri that this application is actually attempting to use (in case it doesn’t match the one from their configuration doc).

First find the failure event with the following query `outcome.reason eq "illegal_redirect_uri_enhanced"`, and then check the value for the provided redirect\_uri within debugContext.debugData.redirectUri and add that to the app as a “Sign-in redirect URI”. That should resolve that error for you.

---

<div class="post-metadata">

**Author:** ![vichu](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vichu](https://devforum.okta.com/u/vichu)\
**Post date:** [September 9, 2022, 7:30pm UTC](https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834/3 "2022-09-09T19:30:35Z")

</div>

Thank you @andrea for an immediate response to my query. I am not quite clear on the process here. I could see the error “illegal\_redirect\_uri\_enhanced” and then the debug\_context.debug\_data.request\_uri shows this value “/oauth2/v1/authorize”. What I am not clear here is should I append this /oauth2/v1/authorize to the Sign-in redirect URI ?

Here is my signin redirect uri / tenant url - https:///login/oauth?service=tenant:Test-org

Pls clarify

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [September 9, 2022, 10:07pm UTC](https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834/4 "2022-09-09T22:07:00Z")

</div>

Not request\_uri, but _redirectUri_ (within the same debugData section)

---

<div class="post-metadata">

**Author:** ![vichu](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vichu](https://devforum.okta.com/u/vichu)\
**Post date:** [September 10, 2022, 8:37pm UTC](https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834/5 "2022-09-10T20:37:37Z")

</div>

Thank you so much @andrea for your suggestion. Now the problem was resolved. I was wondering the redirecturi I copied from the debugcontext was same I what I had in sign-in redirect uri. Not sure how it worked when I copied and pasted the redirecturi to sign-in redirecturi.

BTW I have a problem with Okta SAML integration as well. Will post that issue separately.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [September 12, 2022, 4:10pm UTC](https://devforum.okta.com/t/okta-oidc-configuration-with-vcloud-director/21834/6 "2022-09-12T16:10:26Z")

</div>

Closed on September 12, 2022, 4:10pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
