Supervisor should emit a warning when access token lifetime is too short

This commit is contained in:
Margo Crawford
2022-01-18 15:34:19 -08:00
parent 284ce00aef
commit b0ea7063c7
13 changed files with 130 additions and 32 deletions

View File

@@ -43,6 +43,10 @@ type CustomSessionData struct {
// Used during a downstream refresh to decide which upstream to refresh.
ProviderType ProviderType `json:"providerType"`
// Warnings that were encountered at some point during login that should be emitted to the client.
// These will be RFC 2616-formatted errors with error code 299.
Warnings []string `json:"warnings"`
// Only used when ProviderType == "oidc".
OIDC *OIDCSessionData `json:"oidc,omitempty"`