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.
Click to show internal directories.
Click to hide internal directories.