auth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 21 Imported by: 0

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.

Jump to

Keyboard shortcuts

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