Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3655

Keycloak returns Unauthorized 401

$
0
0

I'm running bitnami's Keycloak image on my local.what I want to do is; use Keycloak REST APIs.but no matter how hard I try, I'm getting 401.

I have done what's written in the doc. so this is a screenshot of the client. access type is confidential, and a service account is enabled. this is testapi client that I created;

here you can see the service account roles;to view and manage users, I assigned manage-users and view-user roles.

firstly, to get the access_token , I'm using client_id and client_credential.as you can see from here;enter image description hereI have no problem getting the access token.

but when I try to get the user list or create a new user, I always get 401.here you can see that I used the SAME access_token that I got from the http://localhost:8092/auth/realms/test/protocol/openid-connect/token

enter image description here

it doesn't make sense. I started to think about smashing the computer.

any help would be greatly appreciated


Viewing all articles
Browse latest Browse all 3655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>