mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
33 lines
612 B
Go
33 lines
612 B
Go
package v1beta1
|
|
|
|
type OAuth2ConfigSpec struct {
|
|
|
|
// +required
|
|
IntrospectUrl string `json:"introspectUrl"`
|
|
|
|
// +optional
|
|
Audiences []string `json:"audiences"`
|
|
|
|
// +optional
|
|
AudienceWildcard bool `json:"audienceWildcard"`
|
|
|
|
//+optional
|
|
ProtectedByScopes bool `json:"ProtectedByScopes"`
|
|
}
|
|
|
|
type HTTPBasicConfigSpec struct {
|
|
// +optional
|
|
Enabled bool `json:"enabled"`
|
|
|
|
// +optional
|
|
Credentials map[string]string `json:"credentials"`
|
|
}
|
|
|
|
type AuthConfigSpec struct {
|
|
// +optional
|
|
OAuth2 *OAuth2ConfigSpec `json:"oauth2,omitempty"`
|
|
|
|
// +optional
|
|
HTTPBasic *HTTPBasicConfigSpec `json:"basic,omitempty"`
|
|
}
|