auth

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllScope          = "all"
	AllowedTokenTypes = []TokenType{
		{/* contains filtered or unexported fields */},
		{/* contains filtered or unexported fields */},
		{/* contains filtered or unexported fields */},
	}
)

Functions

func AnonymousHandler

func AnonymousHandler(ctx service.Context) (interface{}, error)

func Scope

func Scope(scope []string, authHandler service.Handler) service.Handler

Types

type Authorization

type Authorization struct {
	Type  string
	Token string
	Scope []string
}

func GetAuthorization

func GetAuthorization(c service.Context) *(Authorization)

type TokenType

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

Jump to

Keyboard shortcuts

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