This commit is contained in:
Denis Mishin 2023-04-28 18:52:13 -04:00
parent 64323c5231
commit 0c8d036a0c

View file

@ -13,17 +13,15 @@ import (
var defaultScopes = []string{"openid", "email", "profile"} var defaultScopes = []string{"openid", "email", "profile"}
const ( // Name identifies the Cognito identity provider
// Name identifies the Auth0 identity provider const Name = "cognito"
Name = "cognito"
)
// Provider is an Cognito implementation of the Authenticator interface. // Provider is an Cognito implementation of the Authenticator interface.
type Provider struct { type Provider struct {
*pom_oidc.Provider *pom_oidc.Provider
} }
// New instantiates an OpenID Connect (OIDC) provider for Auth0. // New instantiates an OpenID Connect (OIDC) provider for AWS Cognito.
func New(ctx context.Context, opts *oauth.Options) (*Provider, error) { func New(ctx context.Context, opts *oauth.Options) (*Provider, error) {
var p Provider var p Provider