keycloak

Open Source Identity and Access Management.

Steps setup realm

   1 wget https://github.com/keycloak/keycloak/releases/download/14.0.0/keycloak-14.0.0.zip
   2 unzip -t keycloak-14.0.0.zip
   3 cd ~/keycloak-14.0.0/bin
   4 sh standalone.sh 
   5 http://localhost:8080/auth
   6 # admin admin admin create 
   7 # http://localhost:8080/auth/admin/master/console/#/realms/master
   8 # Master, add realm, MyRealm , create 
   9 # Users, add user, myuser
  10 # select user, credentials, mypwd mypwd, temporary off 
  11 # Add role USER to MyRealm
  12 # Make user myuser have role USER
  13 # signout
  14 # http://localhost:8080/auth/realms/MyRealm/account/
  15 # realm: MyRealm
  16 # user pwd: myuser mypwd
  17 # client id: curl_confidential
  18 # protocol: openid-connect
  19 # Curl_confidential  settings: access-type confidential
  20 # valid redirect url http://localhost:8080
  21 # tab credentials: regenerate secret 6dfe5f84-d115-4d3e-8a56-a0fcf5b2f13e
  22 curl -d 'client_id=curl_confidential' -d 'client_secret=6dfe5f84-d115-4d3e-8a56-a0fcf5b2f13e' -d 'username=myuser' -d 'password=mypwd' -d 'grant_type=password' 'http://localhost:8080/auth/realms/MyRealm/protocol/openid-connect/token'

keycloak (last edited 2021-07-09 14:43:13 by localhost)