Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
func Login(ctx context.Context, client oidc.Client, previous meshstack.AccessLevel) (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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.