Help us shape the future of Go! Take the 2026 Go Developer Survey

devicecode

package
v1.36.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 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