[keycloak-user] policy enforcer without content path

uğur kolip ugur.kolip at gmail.com
Fri Dec 23 07:23:33 EST 2016


Hi

i use keycloack 4.5.0.Final with spring boot adapter.
When there isn't context path , i get 403 forbidden error. (message:"Could
not find a configuration for path [/getRoles/alice]."
path:"/admin/getRoles/alice" )

do we have to add contextPath ? do i do something wrong ? or is it bug ?

if we don't , path be wrong,

My opinion because of these :
In AbstractPolicyEnforcer class(keycloak-adapter-core) , there are
String pathInfo = URI.create(request.getURI()).getPath().substring(1);
                String path = pathInfo.substring(pathInfo.indexOf('/'),
pathInfo.length());

Thank you for helping


More information about the keycloak-user mailing list