redirect uri

Not applicable

I have a problem. I have installed and set up edge sso. when the user login, they are taken to the IDP to authenticate against the corporate ldap. After authentication, the IDP passes back the assertion and I then the browser shows the following url

https://mycompany.com:9099/oauth/authorize?client_id=edgeui&response_type=code&redirect_uri=https://...

(I've removed the actual ip address and the actual company url)

.

Notice the redirect uri has an ip address instead of url. It should be

uri=https://mycompany.com:9000/oAuthCallackWithAuthcode.

As a consequence of a IP being in the uri, I get the following in the browser

Invalid redirect https://IP_Address:9000/oAuthCallbackWithAuthcode did not match one of the registered values

I cannot find out how this uri is generated. ie, where is it set or where it is coming from.

I am trying to fix and I cannot determine how to fix this problem.

First, is my diagnosis that the uri should have mycompany.com instead of IP address correct?.

Secondly, if so, how to I fix this problem.

Any assistance is greatly appreciated.

1 5 1,249
5 REPLIES 5

How did you set your sso for edge-ui.

Please refer to the setup document here https://docs.apigee.com/private-cloud/latest/enable-saml-edge-ui

There is a property : EDGEUI_PUBLIC_URIS=http_or_https://IP_or_hostname_of_UI:9000

Please ensure you have put the dns name here instead of IP. Rerun the setup again with dns. Please ensure EDGEUI_SSO_CLIENT_OVERWRITE=y.

Please refer to the section here : https://docs.apigee.com/private-cloud/latest/using-saml-edge-ui for more details on using the SAML with Edge UI.

This is not the answer. In fact, I had run this command a few times and my edgeui_public_uris is set to url, not IP.

@Ajay MandvekarDo we have admin api cli to register sso clients ?

Thank you Rajesh. changing from IP to dns name solved the issue for me.

amathew
Participant I

I have the same issue. @Wesley Nurse, did you solve this issue? Could you please let me know how you solved it?