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

Commit

Permalink
Endrer issuer fra difi.no til idporten.no
Browse files Browse the repository at this point in the history
  • Loading branch information
maccyber committed Sep 8, 2023
1 parent 8a399ba commit d7a4047
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ class TokenResolver(private val authContextHolder: AuthContextHolder) {
fun AuthContextHolder.erAADToken(): Boolean = hentIssuer().contains("login.microsoftonline.com")
private fun AuthContextHolder.erSystemTilSystemToken(): Boolean = this.subject == this.getStringClaim(this.idTokenClaims.get(),"oid")
private fun AuthContextHolder.erTokenXToken(): Boolean = hentIssuer().contains("tokendings")
private fun AuthContextHolder.erIdPortenToken(): Boolean = hentIssuer().contains("difi.no")
private fun AuthContextHolder.erIdPortenToken(): Boolean = hentIssuer().contains("idporten.no")
private fun AuthContextHolder.hentIssuer(): String = this.requireIdTokenClaims().issuer

0 comments on commit d7a4047

Please sign in to comment.