cleanup
This commit is contained in:
parent
28f731c219
commit
c90a9d53c8
2 changed files with 2 additions and 16 deletions
|
@ -53,22 +53,6 @@ type Verifier interface {
|
||||||
Offset() time.Duration
|
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
|
//ACRVerifier specifies the function to be used by the `DefaultVerifier` for validating the acr claim
|
||||||
type ACRVerifier func(string) error
|
type ACRVerifier func(string) error
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,8 @@ type Config struct {
|
||||||
CryptoKey [32]byte
|
CryptoKey [32]byte
|
||||||
DefaultLogoutRedirectURI string
|
DefaultLogoutRedirectURI string
|
||||||
CodeMethodS256 bool
|
CodeMethodS256 bool
|
||||||
|
|
||||||
|
//TODO: add to config after updating Configuration interface for DiscoveryConfig
|
||||||
// ScopesSupported: oidc.SupportedScopes,
|
// ScopesSupported: oidc.SupportedScopes,
|
||||||
// ResponseTypesSupported: responseTypes,
|
// ResponseTypesSupported: responseTypes,
|
||||||
// GrantTypesSupported: oidc.SupportedGrantTypes,
|
// GrantTypesSupported: oidc.SupportedGrantTypes,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue