notes/token_exchange_in_iroh_auth.org

This commit is contained in:
Yann Esposito (Yogsototh) 2022-04-26 16:14:42 +02:00
parent ac69dfdf77
commit fd449d0f09
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -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