1
0
mirror of https://github.com/rancher/types.git synced 2025-09-25 04:12:02 +00:00

added shibboleth saml provider

This commit is contained in:
Luther Monson
2020-01-20 13:04:51 -07:00
parent 613aea8367
commit 129b55dbaf
4 changed files with 50 additions and 26 deletions

View File

@@ -100,6 +100,10 @@ type PingProvider struct {
SamlProvider `json:",inline"`
}
type ShibbolethProvider struct {
SamlProvider `json:",inline"`
}
type ADFSProvider struct {
SamlProvider `json:",inline"`
}

View File

@@ -139,6 +139,17 @@ func authProvidersTypes(schemas *types.Schemas) *types.Schemas {
schema.CollectionMethods = []string{}
schema.ResourceMethods = []string{http.MethodGet}
}).
MustImportAndCustomize(&PublicVersion, v3public.ShibbolethProvider{}, 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