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:
@@ -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 {
|
||||
|
@@ -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}
|
||||
}).
|
||||
|
Reference in New Issue
Block a user