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=produc...
------------------------------------------------------------------------
*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=produc...
*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=produc...)
is not available._
Is the problem in the redirect-url? Or could it be something else?
--
Rodrigo Sasaki
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com