Skip to content

Commit

Permalink
attempts at testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller committed Aug 5, 2024
1 parent d04d1b9 commit 91ad11c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion path_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,10 @@ func (b *jwtAuthBackend) createProvider(config *jwtConfig) (*oidc.Provider, erro
}
oids = append(oids, oid)
}
ietripper := httputil.NewIgnoreUnhandledExtensionsRoundTripper(b.Logger(), nil, oids)
ietripper, err := httputil.NewIgnoreUnhandledExtensionsRoundTripper(nil, oids)
if err != nil {
return nil, err
}
opts = append(opts, oidc.WithRoundTripper(ietripper))
}
c, err := oidc.NewConfig(config.OIDCDiscoveryURL, config.OIDCClientID,
Expand Down
4 changes: 4 additions & 0 deletions path_login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ func setupBackend(t *testing.T, cfg testConfig) (closeableBackend, logical.Stora
data = map[string]interface{}{
"bound_issuer": "https://team-vault.auth0.com/",
"oidc_discovery_url": "https://team-vault.auth0.com/",
"unsupported_critical_cert_extensions": []string{
"2.5.29.54",
"2.5.29.36",
},
}
} else {
if !cfg.jwks {
Expand Down
4 changes: 4 additions & 0 deletions path_oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func TestOIDC_AuthURL(t *testing.T) {
"oidc_client_secret": "def",
"default_role": "test",
"bound_issuer": "http://vault.example.com/",
"unsupported_critical_cert_extensions": []string{
"2.5.29.54",
"2.5.29.36",
},
}

// basic configuration
Expand Down

0 comments on commit 91ad11c

Please sign in to comment.