auth

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthWhiteList = map[string]string{
	constants.ApiPathRoot + "/login":                post,
	constants.ApiPathRoot + "/audit":                post,
	constants.ApiPathRoot + "/key/token":            get,
	constants.ApiPathRoot + "/authorization/access": post,
	constants.ApiPathRoot + "/oauth/redirect":       get,
	constants.ApiPathRoot + "/user/pwd":             put,
	constants.ApiPathRoot + "/user/valid/:username": get,
	constants.ApiPathRoot + "/clusters/register":    post,
}

Functions

func Auth

func Auth() gin.HandlerFunc

func WithinWhiteList added in v1.2.0

func WithinWhiteList(url *url.URL, method string, whiteList map[string]string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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