auth

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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