Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserInput ¶
type CreateUserInput struct {
UserInput *cognitoidentityprovider.AdminCreateUserInput
}
type CreateUserOutput ¶
type CreateUserOutput struct {
UserOutput *cognitoidentityprovider.AdminCreateUserOutput
}
type IdClaims ¶
type IdClaims struct {
Sub string `json:"sub"`
Aud string `json:"aud"`
EmailVerified bool `json:"email_verified"`
TokenUse string `json:"token_use"`
AuthTime int `json:"auth_time"`
Iss string `json:"iss"`
CognitoUser string `json:"cognito:username"`
Exp int `json:"exp"`
GivenName string `json:"given_name"`
Iat int `json:"iat"`
Email string `json:"email"`
jwt.StandardClaims
}
type IdToken ¶
func (*IdToken) ParseWithoutValidating ¶
ParseWithoutValidating parses the claims in an ID token JWT in to a IdClaims struct without validating the token
func (*IdToken) Validate ¶
func (t *IdToken) Validate(ctx context.Context, errorList []apierrorsdeprecated.Error) []apierrorsdeprecated.Error
Validate validates the existence of a JWT string and that it is correctly formatting, storing the tokens claims in an IdClaims struct
type ListUsersInput ¶
type ListUsersInput struct {
ListUsersInput *cognitoidentityprovider.ListUsersInput
}
type ListUsersOutput ¶
type ListUsersOutput struct {
ListUsersOutput *cognitoidentityprovider.ListUsersOutput
}
type RefreshToken ¶
type RefreshToken struct {
TokenString string
}
func (*RefreshToken) GenerateRefreshRequest ¶
func (t *RefreshToken) GenerateRefreshRequest(clientSecret string, username string, clientId string) *cognitoidentityprovider.InitiateAuthInput
GenerateRefreshRequest produces a Cognito InitiateAuthInput struct for refreshing a users current session
func (*RefreshToken) Validate ¶
func (t *RefreshToken) Validate(ctx context.Context, errorList []apierrorsdeprecated.Error) []apierrorsdeprecated.Error
Validate validates the existence of a JWT string
type UserParams ¶
Click to show internal directories.
Click to hide internal directories.