repository

package
v0.0.0-...-cf695c7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamodbAuthenticationTokenRepository

type DynamodbAuthenticationTokenRepository struct {
	Dynamodb *dynamodb.DynamoDB
}

func (*DynamodbAuthenticationTokenRepository) Create

func (*DynamodbAuthenticationTokenRepository) FindByToken

type HttpCognitoJwkRepository

type HttpCognitoJwkRepository struct {
	Iss string
}

func (*HttpCognitoJwkRepository) Fetch

func (r *HttpCognitoJwkRepository) Fetch() (jwk.Set, error)

type JwxCognitoJwtTokenRepository

type JwxCognitoJwtTokenRepository struct {
	Iss    string
	Aud    string
	JwkSet jwk.Set
}

https://github.com/lestrrat-go/jwx を利用して実装

func (*JwxCognitoJwtTokenRepository) ParseAndValidateAccessToken

func (
	r *JwxCognitoJwtTokenRepository,
) ParseAndValidateAccessToken(
	tokenStr string,
) (
	*domain.CognitoAccessToken, error,
)

func (*JwxCognitoJwtTokenRepository) ParseAndValidateIdToken

func (r *JwxCognitoJwtTokenRepository) ParseAndValidateIdToken(tokenStr string) (*domain.CognitoIdToken, error)

Jump to

Keyboard shortcuts

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