authentication

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 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.Request) (*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