[keycloak-user] Unconfigured Demo on Git Master

Bill Burke bburke at redhat.com
Mon May 26 13:02:25 EDT 2014


I think it is because you didn't configure/import the demo realm :)

But...

OAuth highly recommends that redirect-uris are validated against a list 
of known/valid redirect uris.  This is what the "redirect-uri" setting 
is.  It can be a pattern or a list of every valid redirect uri.

i.e.

http://app.com/path/*



On 5/26/2014 8:48 AM, Rodrigo Sasaki wrote:
> Hi,
>
> I tried configuring and running the *unconfigured-demo* that is inside
> the appliance distribution, in the examples directory.
>
> I have done this before in previous versions of keycloak, but I wanted
> to get it working on the latest version on the master branch.
>
> I configured it all like the examples in Bill Burke's YouTube tutorial,
> with one difference. Now Keycloak demands a redirect-url, which it
> didn't before, so I made it the same as the Admin URL, maybe that's
> where the problem is, but when I try to access a keycloak secured page,
> I get this:
>
>
>   HTTP Status 404 - Could not find resource for relative :
>   /rest/realms/demo/tokens/login of full path:
>   http://localhost:8080/auth/rest/realms/demo/tokens/login?client_id=product-portal&client_id=product-portal&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fproduct-portal%2Fproducts%2Fview.jsp&state=0%2F00829ba2-b75d-429d-b8ee-07e31a76118a&login=true
>
> ------------------------------------------------------------------------
>
> *type* Status report
>
> *message* _Could not find resource for relative :
> /rest/realms/demo/tokens/login of full path:
> http://localhost:8080/auth/rest/realms/demo/tokens/login?client_id=product-portal&client_id=product-portal&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fproduct-portal%2Fproducts%2Fview.jsp&state=0%2F00829ba2-b75d-429d-b8ee-07e31a76118a&login=true_
>
> *description* _The requested resource (Could not find resource for
> relative : /rest/realms/demo/tokens/login of full path:
> http://localhost:8080/auth/rest/realms/demo/tokens/login?client_id=product-portal&client_id=product-portal&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fproduct-portal%2Fproducts%2Fview.jsp&state=0%2F00829ba2-b75d-429d-b8ee-07e31a76118a&login=true)
> is not available._
>
>
>
> Is the problem in the redirect-url? Or could it be something else?
> --
> Rodrigo Sasaki
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-user mailing list