Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationContext ¶
type AuthenticationContext interface { OAuth2Config() *oauth2.Config Claims() config.Claims OidcProvider() *oidc.Provider CookieManager() CookieHandler Options() config.OAuthOptions GetUserInfoURL() *url.URL GetBaseURL() *url.URL GetOAuth2MetadataURL() *url.URL GetOIdCMetadataURL() *url.URL GetHTTPClient() *http.Client }
This interface is a convenience wrapper object that holds all the utilities necessary to run Flyte Admin behind authentication It is constructed at the root server layer, and passed around to the various auth handlers and utility functions/objects.
type CookieHandler ¶
type CookieHandler interface { RetrieveTokenValues(ctx context.Context, request *http.Request) (idToken, accessToken, refreshToken string, err error) SetTokenCookies(ctx context.Context, writer http.ResponseWriter, token *oauth2.Token) error DeleteCookies(ctx context.Context, writer http.ResponseWriter) }
Click to show internal directories.
Click to hide internal directories.