Documentation
¶
Overview ¶
Copyright 2021 KubeCube Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = authentication.GenericConfig{}
Functions ¶
This section is empty.
Types ¶
type GenericIdentity ¶
func (*GenericIdentity) GetGroup ¶
func (g *GenericIdentity) GetGroup() string
func (*GenericIdentity) GetRespHeader ¶
func (g *GenericIdentity) GetRespHeader() http.Header
func (*GenericIdentity) GetUserEmail ¶
func (g *GenericIdentity) GetUserEmail() string
GetUserEmail generic auth method response does not include email
func (*GenericIdentity) GetUserID ¶
func (g *GenericIdentity) GetUserID() string
func (*GenericIdentity) GetUserName ¶
func (g *GenericIdentity) GetUserName() string
func (*GenericIdentity) GetUsername ¶
func (g *GenericIdentity) GetUsername() string
type HeaderProvider ¶
type HeaderProvider struct { URL string Method string Scheme string InsecureSkipVerify bool TLSCert string TLSKey string }
func GetProvider ¶
func GetProvider() HeaderProvider
func (HeaderProvider) Authenticate ¶
func (h HeaderProvider) Authenticate(headers map[string][]string) (identityprovider.Identity, error)
Click to show internal directories.
Click to hide internal directories.