Add an optional client secret field.
This commit is contained in:
parent
945a1371f1
commit
2c0c0112c6
1 changed files with 4 additions and 0 deletions
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue