mirror of
https://github.com/rancher/types.git
synced 2025-06-27 22:16:48 +00:00
support okta authentication
This commit is contained in:
parent
a59ea16f50
commit
38ff6b5c9e
@ -311,3 +311,7 @@ type ADFSConfig struct {
|
||||
type KeyCloakConfig struct {
|
||||
SamlConfig `json:",inline" mapstructure:",squash"`
|
||||
}
|
||||
|
||||
type OKTAConfig struct {
|
||||
SamlConfig `json:",inline" mapstructure:",squash"`
|
||||
}
|
||||
|
@ -455,6 +455,7 @@ func authnTypes(schemas *types.Schemas) *types.Schemas {
|
||||
MustImportAndCustomize(&Version, v3.PingConfig{}, configSchema).
|
||||
MustImportAndCustomize(&Version, v3.ADFSConfig{}, configSchema).
|
||||
MustImportAndCustomize(&Version, v3.KeyCloakConfig{}, configSchema).
|
||||
MustImportAndCustomize(&Version, v3.OKTAConfig{}, configSchema).
|
||||
MustImport(&Version, v3.SamlConfigTestInput{}).
|
||||
MustImport(&Version, v3.SamlConfigTestOutput{})
|
||||
}
|
||||
|
@ -95,6 +95,10 @@ type KeyCloakProvider struct {
|
||||
SamlProvider `json:",inline"`
|
||||
}
|
||||
|
||||
type OKTAProvider struct {
|
||||
SamlProvider `json:",inline"`
|
||||
}
|
||||
|
||||
type SamlLoginInput struct {
|
||||
FinalRedirectURL string `json:"finalRedirectUrl"`
|
||||
}
|
||||
|
@ -115,6 +115,17 @@ func authProvidersTypes(schemas *types.Schemas) *types.Schemas {
|
||||
schema.CollectionMethods = []string{}
|
||||
schema.ResourceMethods = []string{http.MethodGet}
|
||||
}).
|
||||
MustImportAndCustomize(&PublicVersion, v3public.OKTAProvider{}, func(schema *types.Schema) {
|
||||
schema.BaseType = "authProvider"
|
||||
schema.ResourceActions = map[string]types.Action{
|
||||
"login": {
|
||||
Input: "samlLoginInput",
|
||||
Output: "samlLoginOutput",
|
||||
},
|
||||
}
|
||||
schema.CollectionMethods = []string{}
|
||||
schema.ResourceMethods = []string{http.MethodGet}
|
||||
}).
|
||||
MustImport(&PublicVersion, v3public.SamlLoginInput{}).
|
||||
MustImport(&PublicVersion, v3public.SamlLoginOutput{}).
|
||||
// OpenLdap provider
|
||||
|
Loading…
Reference in New Issue
Block a user