Skip to content

Commit

Permalink
token exchange with flash JWT
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorwolf committed Mar 27, 2024
1 parent 03f5c3a commit 0fc7d64
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/flash.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
###
GET {{$dotenv flash_api}}/bff/user
Cookie: {{$dotenv flash_cookie}}
X-Csrf: 1
###
# @name getAccessToken
GET {{$dotenv flash_api}}/api/token/bearer
Cookie: {{$dotenv flash_cookie}}
X-Csrf: 1
###
@accessToken={{getAccessToken.response.body.$.accessToken}}
@refreshToken={{getAccessToken.response.body.$.refreshToken}}
### Get Access Token from SAP Identity Authentication Service (IAS)
# @name requestAccessTokenIAS
POST {{$dotenv ias_base_url}}/oauth2/token
Authorization: Basic {{$dotenv flash_ias_client_id}}:{{$dotenv flash_ias_client_secret}}
Content-Type: application/x-www-form-urlencoded

grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
&assertion={{accessToken}}

0 comments on commit 0fc7d64

Please sign in to comment.