From c90a9d53c83d35a96d9313ebbfadce1e9a18059f Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Wed, 16 Sep 2020 16:23:38 +0200 Subject: [PATCH] cleanup --- pkg/oidc/verifier.go | 16 ---------------- pkg/op/op.go | 2 ++ 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/pkg/oidc/verifier.go b/pkg/oidc/verifier.go index 9f5da07..492664b 100644 --- a/pkg/oidc/verifier.go +++ b/pkg/oidc/verifier.go @@ -53,22 +53,6 @@ type Verifier interface { Offset() time.Duration } -type verifierConfig struct { - issuer string - clientID string - nonce string - ignoreAudience bool - ignoreExpiration bool - //iat *iatConfig - acr ACRVerifier - maxAge time.Duration - supportedSignAlgs []string - - // httpClient *http.Client - - now time.Time -} - //ACRVerifier specifies the function to be used by the `DefaultVerifier` for validating the acr claim type ACRVerifier func(string) error diff --git a/pkg/op/op.go b/pkg/op/op.go index fa78a6f..d913c7f 100644 --- a/pkg/op/op.go +++ b/pkg/op/op.go @@ -89,6 +89,8 @@ type Config struct { CryptoKey [32]byte DefaultLogoutRedirectURI string CodeMethodS256 bool + + //TODO: add to config after updating Configuration interface for DiscoveryConfig // ScopesSupported: oidc.SupportedScopes, // ResponseTypesSupported: responseTypes, // GrantTypesSupported: oidc.SupportedGrantTypes,