Documentation
¶
Overview ¶
Package auth implements OAuth2 Authorization Code + PKCE for CLI login.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
func Login(server string) (*config.Credential, error)
Login runs the full OAuth2 Authorization Code + PKCE flow. Returns a credential to store.
func LoginDeviceCode ¶ added in v0.2.0
func LoginDeviceCode(server string) (*config.Credential, error)
LoginDeviceCode runs the RFC 8628 Device Authorization Grant flow. It prints a user code for the user to enter in a browser, then polls the token endpoint until approved, denied, or expired.
func RefreshToken ¶
func RefreshToken(server string, cred *config.Credential) (*config.Credential, error)
RefreshToken attempts to refresh the access token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.