Skip to content

4.quickstart

zhoumingjun edited this page Jul 29, 2019 · 1 revision

export host=10.107.1.195 export port=8080 export realm=quickstart

access_token=curl -X POST "http://$host:$port/auth/realms/$realm/protocol/openid-connect/token" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'grant_type=password' \ -d 'client_id=authz-servlet' \ -d 'client_secret=secret' \ -d "username=bob" \ -d 'password=bob' | jq .access_token -r

jwt $access_token

curl -X POST
http://$host:$port/auth/realms/$realm/protocol/openid-connect/token
-H "Authorization: Bearer ${access_token}"
--data "grant_type=urn:ietf:params:oauth:grant-type:uma-ticket"
--data "audience=authz-servlet" | jq .access_token -r | jwt

<<AllPages()>>

Clone this wiki locally