[keycloak-user] Keycloak with rest service suugestion request

Rajkiran K rajkiran.k at inteqsolutions.com
Wed Apr 27 06:50:24 EDT 2016


Hi,

I have 2 Spring boot Applications (Application A, B). Both applications 
are running with Keycloak (configured clients A, B in same realm), also 
has one rest service in application A which will be accessed by same 
application A (one client "C" in same realm of keycloak with Direct 
Access Grants Enabled ON is created for access). This works fine.

Now moving that rest service from Application A to application B (Which 
is running on different server) and when i try to access with rest 
service from Application A throwing error as below (Configurered client 
"C" to accept urls from Applications A, B)

{"timestamp":"2016-04-22T07:23:37.303+0000","status":401,"error":"Unauthorized","message":"Unable 
to authenticate bearer token","path":"/sample-service/sample"}
org.springframework.web.client.HttpClientErrorException: 401 Unauthorized

Please help me to resolve this issue. Thanks in advance.

Thanks,
Raj Kiran K



More information about the keycloak-user mailing list