generic

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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

Functions

This section is empty.

Types

type GenericIdentity

type GenericIdentity struct {
	Username string
	Header   http.Header
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL