notes/token_exchange_in_iroh_auth.org
This commit is contained in:
parent
ac69dfdf77
commit
fd449d0f09
1 changed files with 6 additions and 2 deletions
|
@ -29,12 +29,16 @@ POST /iroh/oauth2/token
|
|||
Authorization: Basic XXXXXXXXXXXXX
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
|
||||
grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange
|
||||
&resource=https%3A%2F%2Fvisibility.amp.cisco.com%2Firoh
|
||||
&audience=iroh
|
||||
&scope=profile
|
||||
&subject_token=SESSION_TOKEN_OF_USER
|
||||
&subject_token_type=
|
||||
urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Ajwt
|
||||
urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token
|
||||
#+end_src
|
||||
|
||||
The call takes:
|
||||
|
||||
- Authorization contain the info about the Client
|
||||
- The user access token
|
||||
|
|
Loading…
Reference in a new issue