Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateUser ¶
func AuthenticateUser(oauthClient *oauthv2.OAuthClient, opts config.AppOptions, storer storage.Storer) (oauthv2.OAuthToken, error)
func RefreshToken ¶
func RefreshToken(oauthClient *oauthv2.OAuthClient, opts config.AppOptions, token oauthv2.OAuthToken, storer storage.Storer) (oauthv2.OAuthToken, error)
Types ¶
type Authenticator ¶
type Authenticator interface {
GetToken() (oauthv2.OAuthToken, TokenStatus)
StoreToken() error
RefreshToken() error
}
type TokenStatus ¶
type TokenStatus int
const ( DoesntExist TokenStatus = iota Expired Valid TOKEN_KEY = "msgraphtoken" )
Click to show internal directories.
Click to hide internal directories.