Documentation
¶
Index ¶
Constants ¶
View Source
const ( TkPath string = "/auth/oauth2/v2/token" RevokePath string = "/auth/oauth2/revoke" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(subdomain string) *Authenticator
func (*Authenticator) GenerateToken ¶
func (a *Authenticator) GenerateToken() error
func (*Authenticator) GetToken ¶
func (a *Authenticator) GetToken() (string, error)
func (*Authenticator) RevokeToken ¶
func (a *Authenticator) RevokeToken(token *string) error
Click to show internal directories.
Click to hide internal directories.