auth

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package auth provides token based authentication

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenAuth added in v1.7.3

type TokenAuth struct {
	// contains filtered or unexported fields
}

TokenAuth token authentication (simple)

func NewTokenAuth added in v1.7.3

func NewTokenAuth() *TokenAuth

NewTokenAuth create a token authentication

func (*TokenAuth) Authenticate added in v1.7.3

func (a *TokenAuth) Authenticate(payload string) (metadata.M, bool)

Authenticate authentication client's credential

func (*TokenAuth) Init added in v1.7.3

func (a *TokenAuth) Init(args ...string)

Init authentication initialize arguments

func (*TokenAuth) Name added in v1.7.3

func (a *TokenAuth) Name() string

Name authentication name

Jump to

Keyboard shortcuts

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