tracker.org

This commit is contained in:
Yann Esposito (Yogsototh) 2021-06-23 11:22:57 +02:00
parent 971755648a
commit 0876766a6e
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -3827,9 +3827,8 @@ CLOCK: [2021-06-23 Wed 10:10]
[2021-06-23 Wed 10:10]
Given a session token how to retrieve refresh token for a client bypassing
user interaction or redirection.
Given a session token (JWT) this is how to retrieve refresh token for a
client bypassing any user interaction or browser redirection.
Given a classical OAuth2 Auth code client with:
@ -3846,7 +3845,9 @@ Make the following HTTP call:
access/refresh tokens
#+begin_src
curl -X POST "http://localhost:9001/iroh/oauth2/csrf-token" \
IROH_URL="https://visibility.amp.cisco.com"
curl -X POST "$IROH_URL/iroh/oauth2/csrf-token" \
-H "accept: application/json" \
-H "authorization: Bearer $JWT" \
-H "Content-Type: application/x-www-form-urlencoded" \
@ -3855,7 +3856,7 @@ curl -X POST "http://localhost:9001/iroh/oauth2/csrf-token" \
CSRF="eyJhGc..."
curl -X POST "http://localhost:9001/iroh/oauth2/authorize" \
curl -X POST "$IROH_URL/iroh/oauth2/authorize" \
-H "accept: application/json" \
-H "authorization: Bearer $JWT" \
-H "Content-Type: application/x-www-form-urlencoded" \
@ -3864,7 +3865,7 @@ curl -X POST "http://localhost:9001/iroh/oauth2/authorize" \
CODE="eyJhGc..."
curl -X POST "http://localhost:9001/iroh/oauth2/token" \
curl -X POST "$IROH_URL/iroh/oauth2/token" \
-H "accept: application/json" \
-u localtest:localpass \
-H "Content-Type: application/x-www-form-urlencoded" \