auth

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OAuthLogin

func OAuthLogin(name, giteaURL string) error

OAuthLogin performs an OAuth2 PKCE login flow to authorize the CLI

func OAuthLoginWithFullOptions

func OAuthLoginWithFullOptions(opts OAuthOptions) error

OAuthLoginWithFullOptions performs an OAuth2 PKCE login flow with full options control

func OAuthLoginWithOptions

func OAuthLoginWithOptions(name, giteaURL string, insecure bool) error

OAuthLoginWithOptions performs an OAuth2 PKCE login flow with additional options

func RefreshAccessToken

func RefreshAccessToken(login *config.Login) error

RefreshAccessToken manually renews an expired access token using the refresh token

Types

type OAuthOptions

type OAuthOptions struct {
	Name        string
	URL         string
	Insecure    bool
	ClientID    string
	RedirectURL string
	Port        int
}

OAuthOptions contains options for the OAuth login flow

Jump to

Keyboard shortcuts

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