Documentation ¶
Overview ¶
Package sully provides interfaces to work with AWS Cognito to fetch the OpenID Token
Example (FetchOpenIDToken) ¶
package main import ( "fmt" "github.com/alwindoss/sully" ) func main() { cfg := &sully.Config{ UserPoolID: "dummy-user-pool-id", IdentityPoolID: "dummy-identity-pool-id", ClientID: "dummy-client-id", Region: "dummy-region", } client := sully.NewCognitoClient(cfg) token, err := client.Authenticate("user-name", "password") if err != nil { fmt.Printf("Error: %v", err) return } fmt.Printf("Token: %s\n", token) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cognito ¶
Cognito is
func NewCognitoClient ¶
NewCognitoClient is a factory to create the cognito client if the nil config is not provided or any of the fields in the config are not set then a nil object would ne returned
Click to show internal directories.
Click to hide internal directories.