Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForceLogin ¶
func ForceLogin(ctx context.Context, authClient client.AuthClient, tokenStore tokenstore.TokenStore, grantType auth.GrantType) (*auth.AuthSession, error)
Login with the given authClient for the specified grant type. The resulting auth session will be stored in the provided tokenStore. This method will always re-authenticate, even if a valid session already exists.
func LoginIfNecessary ¶
func LoginIfNecessary(ctx context.Context, authClient client.AuthClient, tokenStore tokenstore.TokenStore, grantType auth.GrantType) (*auth.AuthSession, error)
Login with the given authClient for the specified grant type. The resulting auth session will be stored in the provided tokenStore. If a valid session already exists, it will be returned without re-authenticating.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.