amazonsupport

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonCognitoClaims

type AmazonCognitoClaims struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	jwt.StandardClaims
}

type AmazonCognitoClaimsParser

type AmazonCognitoClaimsParser struct {
}

func (AmazonCognitoClaimsParser) ParseWithClaims

func (m AmazonCognitoClaimsParser) ParseWithClaims(tokenString string, _ string, claims jwt.Claims) (*jwt.Token, error)

type AmazonCognitoConfiguration

type AmazonCognitoConfiguration struct {
	Region               string
	Domain               string
	RedirectUrl          string
	UserPoolId           string
	UserPoolClientId     string
	UserPoolClientSecret string
}

type AmazonSupport

type AmazonSupport struct {
	// contains filtered or unexported fields
}

func NewAmazonSupport

func NewAmazonSupport(client HTTPClient, amazonConfig AmazonCognitoConfiguration, claimsParser ClaimsParser, session *sessions.CookieStore) *AmazonSupport

func (*AmazonSupport) Middleware

func (a *AmazonSupport) Middleware(next http.Handler) http.Handler

type ClaimsParser

type ClaimsParser interface {
	ParseWithClaims(tokenString string, region string, claims jwt.Claims) (*jwt.Token, error)
}

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL