Documentation ¶
Index ¶
- Constants
- func New(name string, params types.StringMap) (auth.Provider, error)
- type AuthChallenge
- type AuthToken
- type User
- type UserPool
- func (p *UserPool) AuthenticateUser(username, password string) (keychain.AuthToken, error)
- func (p *UserPool) ChangeUserPassword(username, current, proposed string) error
- func (p *UserPool) CreateUser(username, password string, attributes map[string]string, ...) (auth.User, error)
- func (p *UserPool) DeleteUser(username string) error
- func (p *UserPool) DisableUser(username string) error
- func (p *UserPool) GetUser(username string) (auth.User, error)
- func (p *UserPool) UpdateUser(username string, attributes types.StringMap) error
Constants ¶
View Source
const (
// JWKSURL is the cognito well-known public keys url
JWKSURL = "https://cognito-idp.%s.amazonaws.com/%s/.well-known/jwks.json"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthChallenge ¶
AuthChallenge is a congnito auth challenge
func (*AuthChallenge) Error ¶
func (c *AuthChallenge) Error() string
type User ¶
type User struct { *cognitoidentityprovider.UserType // contains filtered or unexported fields }
User is a cognito User
func (*User) Attributes ¶
Attributes returns a map of user attributes
type UserPool ¶
type UserPool struct {
// contains filtered or unexported fields
}
UserPool is a congnito UserPool
func (*UserPool) AuthenticateUser ¶
AuthenticateUser authenticates the user and returns an AuthToken
func (*UserPool) ChangeUserPassword ¶
ChangeUserPassword changes the users password This method first attempt to authenticate the user to get a session token then it uses this token to perform the actual password change.
func (*UserPool) CreateUser ¶
func (p *UserPool) CreateUser(username, password string, attributes map[string]string, options ...types.StringMap) (auth.User, error)
CreateUser creates a new user
func (*UserPool) DeleteUser ¶
DeleteUser deletes a user record
func (*UserPool) DisableUser ¶
DisableUser disables a user account
Click to show internal directories.
Click to hide internal directories.