Discover Packages
github.com/SKF/go-utility/v2
auth
package
Version:
v2.33.12
Opens a new window with list of versions in this module.
Published: Sep 18, 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 Source Files Directories Index Constants Variables Functions Types Configure(conf) GetBaseURL() IsTokenValid(token, tokenExpireDurationDiff) type Challenge type Config type SignInResponse type Tokens SignIn(ctx, username, password) SignInRefreshToken(ctx, refreshToken)
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.