impelement unit tests for the token Verifiers

This commit is contained in:
Tim Möhlmann 2023-03-03 18:44:33 +02:00
parent d41f4b5d21
commit 7b613c63eb
8 changed files with 786 additions and 7 deletions

View file

@ -144,6 +144,7 @@ func NewIDTokenClaims(issuer, subject string, audience []string, expiration, aut
AuthenticationContextClassReference: acr,
AuthenticationMethodsReferences: amr,
AuthorizedParty: clientID,
ClientID: clientID,
},
}
}

View file

@ -196,6 +196,7 @@ func TestNewIDTokenClaims(t *testing.T) {
AuthenticationContextClassReference: "something",
AuthenticationMethodsReferences: []string{"some", "methods"},
AuthorizedParty: "just@me.com",
ClientID: "just@me.com",
},
}