Add support for different signing algorithms

This commit is contained in:
2024-10-02 22:04:40 +01:00
parent a7d42de0a4
commit 9ff6779caa
4 changed files with 149 additions and 110 deletions
+3 -2
View File
@@ -247,8 +247,9 @@ func (suite *TraefikOidcTestSuite) TestBuildAuthURL() {
func (suite *TraefikOidcTestSuite) TestJWKToPEM() {
jwk := &JWK{
N: base64.RawURLEncoding.EncodeToString(big.NewInt(12345).Bytes()),
E: base64.RawURLEncoding.EncodeToString(big.NewInt(65537).Bytes()),
Kty: "RSA", // Set the key type to RSA
N: base64.RawURLEncoding.EncodeToString(big.NewInt(12345).Bytes()),
E: base64.RawURLEncoding.EncodeToString(big.NewInt(65537).Bytes()),
}
pem, err := jwkToPEM(jwk)
suite.Require().NoError(err)