[keycloak-user] Invalid parameter: redirect_uri

Chris Raiskin Chris.Raiskin at standard.com
Fri Mar 11 13:31:22 EST 2016


Hello

I'm following The Basic Part 2 tutorial<https://www.youtube.com/watch?v=NMj4avFLMJ0> with keycloak 1.9.0 with the purpose of demo'ing keycloak to the team.

The only difference in my set up is that I have the keycloak server on a separate host from the wildfly server running the demo apps.
When I hit "Customer Listing" link, I get

WE'RE SORRY...
Invalid parameter: redirect_uri

displayed by the keycloak server.

http://keycloak.blah.com:8080/auth/realms/demo/protocol/openid-connect/auth?response_type=code&client_id=customer-portal&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fcustomer-portal%2Fcustomers%2Fview.jsp&state=1%2Fe1f42109-1372-4808-98aa-6cd5bbb0b9ac&login=true

I can see that the redirect_uri is referencing "localhost" both from the URL above and the keycloak log entry:

11:21:52,483 WARN  [org.keycloak.events] (default task-75) type=LOGIN_ERROR, realmId=demo, clientId=customer-portal, userId=null, ipAddress=192.168.1.3, error=invalid_redirect_uri, response_type=code, redirect_uri=http://localhost:8080/customer-portal/customers/view.jsp, response_mode=query

but I'm not sure where "localhost" is coming from b/c the "valid redirect uri" for this Client/Application is configured like this:

* Valid Redirect URIs            http://wildfly.blah.com:8080/customer-portal/*


Any help would be appreciated.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160311/849a4136/attachment.html 


More information about the keycloak-user mailing list