Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keycloak giving invalid redirect uri error

I am very new to keycloak so might be i am asking a very basic question.

Anyways the problem is as follows :

I have integrated my JBoss installation with keycloak saml adapter. It is installed correctly and Jboss is working perfectly fine. After this I have updated my application to include keycloak_saml.xml and updated the auth method in the web.xml to KEYCLOAK-SAML. This is all as per the keycloak official documentation. I am using a URI in entity id in my keycloak_saml.xml, for example : /wapps/myapp

The deployment and application startup was successful. However when I am testing I am getting 500 error and error message is invalid redirect URI.

I am able to see that the redirect URI is empty in the response headers. Has anyone seen this issue before. I do not have access to keycloak saml server so was not able to check what is set on the server side.

Please help.

Thanks!! Pulkit

like image 228
Pulkit Gupta Avatar asked Sep 22 '16 03:09

Pulkit Gupta


People also ask

What is redirect URI in Keycloak?

By default, keycloak is configured to use * as the redirect URL in VMware Telco Cloud Operations. For authorization code flows, when redirect URIs are registered that are too general, it would be possible for a rogue client to impersonate a different client that has a broader scope of access.

What is valid redirect URIs?

A redirect URI, or reply URL, is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.


1 Answers

This was because of some configuration miss at the server side. Exact parameters which were missed are

  • Base URL
  • Master SAML Processing URL
like image 89
Pulkit Gupta Avatar answered Sep 30 '22 02:09

Pulkit Gupta