tracker.org
This commit is contained in:
parent
971755648a
commit
0876766a6e
1 changed files with 7 additions and 6 deletions
13
tracker.org
13
tracker.org
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue