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

browser

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(ctx context.Context, client oidc.Client, previous Previous) (oidc.Token, meshstack.AccessLevel, error)

Login supplies the two things oidc.AuthorizationCodeFlow needs and internal/oidc cannot have: a loopback address to receive the redirect on, and a person in front of a browser. The browser opens on a page of the loopback server first, where the person picks the access level, and that page redirects on to the identity provider. It returns the level the identity provider granted, which is none on a meshStack older than access levels.

Types

type Previous added in v0.7.0

type Previous struct {
	Level        meshstack.AccessLevel
	RefreshToken string
}

Previous is the login of the profile that a new login replaces.

Jump to

Keyboard shortcuts

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