authentication

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TenantUser

type TenantUser struct {
	user.Info
}

func RequestUser

func RequestUser(req *http.Request, apiKeyAuthenticator authenticator.Password) (*TenantUser, bool)

RequestUser according to the basic auth credentials carried in the http request, use the password as an APIKey to call the authentication method, and return the tenantUser.

func (*TenantUser) TenantID

func (u *TenantUser) TenantID() string

Jump to

Keyboard shortcuts

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