Documentation
¶
Overview ¶
UAA client for token grants and revocation
Index ¶
- type Client
- func (u *Client) ClientCredentialGrant(clientId, clientSecret string) (string, error)
- func (u *Client) PasswordGrant(clientId, clientSecret, username, password string) (string, string, error)
- func (u *Client) RefreshTokenGrant(clientId, clientSecret, refreshToken string) (string, string, error)
- func (u *Client) RevokeToken(accessToken string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client makes requests to the UAA server at AuthURL
func (*Client) ClientCredentialGrant ¶
ClientCredentialGrant requests a token using client_credentials grant type
func (*Client) PasswordGrant ¶
func (u *Client) PasswordGrant(clientId, clientSecret, username, password string) (string, string, error)
PasswordGrant requests an access token and refresh token using password grant type
func (*Client) RefreshTokenGrant ¶
func (u *Client) RefreshTokenGrant(clientId, clientSecret, refreshToken string) (string, string, error)
RefreshTokenGrant requests a new access token and refresh token using refresh_token grant type
func (*Client) RevokeToken ¶
RevokeToken revokes the given access token
Click to show internal directories.
Click to hide internal directories.