1
0
mirror of https://github.com/rancher/types.git synced 2025-09-18 07:52:41 +00:00

add fields for kubeconfig saml tokens

This commit is contained in:
kinarashah
2020-07-16 13:03:01 -07:00
parent ae84b42a47
commit cf6aad45fb
5 changed files with 27 additions and 0 deletions

View File

@@ -11,6 +11,14 @@ type AuthProvider struct {
Type string `json:"type"`
}
type AuthToken struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Token string `json:"token"`
ExpiresAt string `json:"expiresAt"`
}
type GenericLogin struct {
TTLMillis int64 `json:"ttl,omitempty"`
Description string `json:"description,omitempty" norman:"type=string,required"`
@@ -118,6 +126,9 @@ type OKTAProvider struct {
type SamlLoginInput struct {
FinalRedirectURL string `json:"finalRedirectUrl"`
RequestID string `json:"requestId"`
PublicKey string `json:"publicKey"`
ResponseType string `json:"responseType"`
}
type SamlLoginOutput struct {

View File

@@ -27,6 +27,10 @@ func authProvidersTypes(schemas *types.Schemas) *types.Schemas {
schema.CollectionMethods = []string{}
schema.ResourceMethods = []string{}
}).
MustImportAndCustomize(&PublicVersion, v3public.AuthToken{}, func(schema *types.Schema) {
schema.CollectionMethods = []string{http.MethodGet, http.MethodDelete}
schema.ResourceMethods = []string{http.MethodGet, http.MethodDelete}
}).
MustImportAndCustomize(&PublicVersion, v3public.AuthProvider{}, func(schema *types.Schema) {
schema.CollectionMethods = []string{http.MethodGet}
}).