Discover Packages
github.com/SKF/go-utility/v2
auth
package
Version:
v2.33.17
Opens a new window with list of versions in this module.
Published: Oct 24, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
IsTokenValid checks if the token is still valid
type Challenge struct {
ID string `json:"id"`
Type string `json:"type"`
}
type Config struct {
WithDatadogTracing bool
WithOpenCensusTracing bool
ServiceName string
Stage string
}
type SignInResponse struct {
Data struct {
Tokens Tokens `json:"tokens"`
Challenge Challenge `json:"challenge"`
} `json:"data"`
}
type Tokens struct {
AccessToken string `json:"accessToken"`
IdentityToken string `json:"identityToken"`
RefreshToken string `json:"refreshToken"`
}
SignIn will sign in the user and if needed complete the change password challenge
Source Files
¶
Directories
¶
Package secretsmanagerauth provides a package for authenticating with credentials stored in Secrets Manager.
Package secretsmanagerauth provides a package for authenticating with credentials stored in Secrets Manager.
Click to show internal directories.
Click to hide internal directories.