Add an optional client secret field.

This commit is contained in:
Mariano Cano 2019-03-14 18:00:11 -07:00
parent 945a1371f1
commit 2c0c0112c6

View file

@ -41,10 +41,14 @@ type openIDPayload struct {
}
// OIDC represents an OAuth 2.0 OpenID Connect provider.
//
// ClientSecret is optional, and it will be only necessary if an implicit flow
// is not available, the value will be visible in the provisioners endpoint.
type OIDC struct {
Type string `json:"type"`
Name string `json:"name"`
ClientID string `json:"clientID"`
ClientSecret string `json:"clientSecret,omitempty"`
ConfigurationEndpoint string `json:"configurationEndpoint"`
Claims *Claims `json:"claims,omitempty"`
Admins []string `json:"admins,omitempty"`