Documentation ¶
Index ¶
- type AWSToken
- func (t *AWSToken) ExchangeCredentials(ctx context.Context, org *am.Organization, idKey, accessKey string) (string, error)
- func (t *AWSToken) UnsafeExtractAccess(ctx context.Context, accessKey string) (*token.AccessToken, error)
- func (t *AWSToken) UnsafeExtractID(ctx context.Context, idKey string) (*token.IDToken, error)
- func (t *AWSToken) ValidateAccessToken(ctx context.Context, org *am.Organization, accessKey string) (*token.AccessToken, error)
- func (t *AWSToken) ValidateIDToken(ctx context.Context, org *am.Organization, idKey string) (*token.IDToken, error)
- type JWK
- type JWKKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSToken ¶
type AWSToken struct {
// contains filtered or unexported fields
}
func (*AWSToken) ExchangeCredentials ¶
func (*AWSToken) UnsafeExtractAccess ¶
func (*AWSToken) UnsafeExtractID ¶
func (*AWSToken) ValidateAccessToken ¶
func (t *AWSToken) ValidateAccessToken(ctx context.Context, org *am.Organization, accessKey string) (*token.AccessToken, error)
ValidateAccessToken verifies the signature from the user pool is valid (not expired, properly signed) then verifies individual claims inside the parsed token.
func (*AWSToken) ValidateIDToken ¶
func (t *AWSToken) ValidateIDToken(ctx context.Context, org *am.Organization, idKey string) (*token.IDToken, error)
ValidateIDToken verifies the signature from the user pool is valid (not expired, properly signed) then verifies individual claims inside the parsed token.
Click to show internal directories.
Click to hide internal directories.