login

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL