From cba0b401b47d939eebb95a553f0c2b8642cbbe43 Mon Sep 17 00:00:00 2001 From: rajashree Date: Tue, 11 Jun 2019 13:54:30 -0700 Subject: [PATCH] Add password tag to google oauth creds fields --- apis/management.cattle.io/v3/authn_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/authn_types.go b/apis/management.cattle.io/v3/authn_types.go index ec0428cf..f56e813c 100644 --- a/apis/management.cattle.io/v3/authn_types.go +++ b/apis/management.cattle.io/v3/authn_types.go @@ -167,8 +167,8 @@ type GoogleOauthConfig struct { metav1.ObjectMeta `json:"metadata,omitempty"` AuthConfig `json:",inline" mapstructure:",squash"` - OauthCredential string `json:"oauthCredential,omitempty" norman:"required"` - ServiceAccountCredential string `json:"serviceAccountCredential,omitempty"` + OauthCredential string `json:"oauthCredential,omitempty" norman:"required,type=password"` + ServiceAccountCredential string `json:"serviceAccountCredential,omitempty" norman:"type=password"` AdminEmail string `json:"adminEmail,omitempty"` Hostname string `json:"hostname,omitempty" norman:"required"` UserInfoEndpoint string `json:"userInfoEndpoint" norman:"default=https://openidconnect.googleapis.com/v1/userinfo,required,notnullable"`