Skip to content

Commit

Permalink
lagt til audience for getOboToken, for reuse av token til ulike tjene…
Browse files Browse the repository at this point in the history
…ster

Co-authored-by: Robin Tordly <[email protected]>
  • Loading branch information
VHollund and rtc11 committed Jan 4, 2024
1 parent 0a3e311 commit 9400551
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TokenXTokenProvider(
) {

private val jwtFactory = JwtGrantFactory(config)
suspend fun getOnBehalfOfToken(tokenx_token: String) = getAccessToken(tokenx_token) {
suspend fun getOnBehalfOfToken(tokenx_token: String) = getAccessToken(tokenx_token+audience) {
"""
grant_type=urn:ietf:params:oauth:grant-type:token-exchange
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
Expand Down

0 comments on commit 9400551

Please sign in to comment.