github.com/spinnaker/spin@v1.30.0/config/auth/authconfig.go (about) 1 // Copyright (c) 2018, Google, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package auth 16 17 import ( 18 "github.com/spinnaker/spin/config/auth/basic" 19 gsa "github.com/spinnaker/spin/config/auth/googleserviceaccount" 20 config "github.com/spinnaker/spin/config/auth/iap" 21 "github.com/spinnaker/spin/config/auth/ldap" 22 "github.com/spinnaker/spin/config/auth/oauth2" 23 "github.com/spinnaker/spin/config/auth/x509" 24 ) 25 26 // Config is the CLI's authentication configuration. 27 type Config struct { 28 Enabled bool `json:"enabled" yaml:"enabled"` 29 IgnoreRedirects bool `json:"ignoreRedirects" yaml:"ignoreRedirects"` 30 IgnoreCertErrors bool `json:"ignoreCertErrors" yaml:"ignoreCertErrors"` 31 X509 *x509.Config `json:"x509,omitempty" yaml:"x509,omitempty"` 32 OAuth2 *oauth2.Config `json:"oauth2,omitempty" yaml:"oauth2,omitempty"` 33 Basic *basic.Config `json:"basic,omitempty" yaml:"basic,omitempty"` 34 Iap *config.Config `json:"iap,omitempty" yaml:"iap,omitempty"` 35 Ldap *ldap.Config `json:"ldap,omitempty" yaml:"ldap,omitempty"` 36 37 GoogleServiceAccount *gsa.Config `json:"google_service_account,omitempty" yaml:"google_service_account,omitempty"` 38 }