devicecode

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceCode

type DeviceCode struct {
	Browser browser.Interface
	Logger  logger.Interface
}

DeviceCode provides the oauth2 device code flow.

func (*DeviceCode) Do

func (u *DeviceCode) Do(ctx context.Context, in *Option, oidcClient client.Interface) (*oidc.TokenSet, error)

type Option

type Option struct {
	SkipOpenBrowser bool
	BrowserCommand  string
}

Jump to

Keyboard shortcuts

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