Documentation
¶
Index ¶
- func OAuthLogin(ctx context.Context, name, giteaURL string) error
- func OAuthLoginWithFullOptions(ctx context.Context, opts OAuthOptions) error
- func OAuthLoginWithOptions(ctx context.Context, name, giteaURL string, insecure bool) error
- func ReauthenticateLogin(ctx context.Context, login *config.Login) error
- func RefreshAccessToken(login *config.Login) error
- type OAuthOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OAuthLogin ¶
OAuthLogin performs an OAuth2 PKCE login flow to authorize the CLI
func OAuthLoginWithFullOptions ¶
func OAuthLoginWithFullOptions(ctx context.Context, opts OAuthOptions) error
OAuthLoginWithFullOptions performs an OAuth2 PKCE login flow with full options control
func OAuthLoginWithOptions ¶
OAuthLoginWithOptions performs an OAuth2 PKCE login flow with additional options
func ReauthenticateLogin ¶
ReauthenticateLogin performs a full browser-based OAuth flow to get new tokens for an existing login. This is used when the refresh token is expired or invalid.
func RefreshAccessToken ¶
RefreshAccessToken manually renews an access token using the refresh token. This is used by the "tea login oauth-refresh" command for explicit token refresh. For automatic threshold-based refresh, use login.Client() which handles it internally.
Types ¶
Click to show internal directories.
Click to hide internal directories.