Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Sjekker om token issuer er 'tokendings' eller 'tokenx'
Browse files Browse the repository at this point in the history
  • Loading branch information
maccyber committed Sep 8, 2023
1 parent db7daee commit 7d2626e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TokenExchangeService(private val tokenResolver: TokenResolver) {
tokenResolver.erTokenXToken() -> exchangeTokenXToken(api, opprinneligToken)
tokenResolver.erAzureAdOboToken() -> exchangeAadOboToken(api, opprinneligToken)
tokenResolver.erAzureAdSystemTilSystemToken() -> createAadMachineToMachineToken(api)
else -> throw IllegalStateException("Prøver å veksle et token som ikke er AAD OBO eller TokenX: $opprinneligToken")
else -> throw IllegalStateException("Prøver å veksle et token som ikke er AAD OBO eller TokenX")
}
}

Expand Down

0 comments on commit 7d2626e

Please sign in to comment.