auth

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package auth 验证类的中间件

Index

Constants

View Source
const ValueKey keyType = 0

ValueKey 保存于 context 中的值的名称

所有的验证中间件,在验证成功之后,都会将一个值附加在 r.Context() 之上,可以通过 ValueKey 获取其相应的值。

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package basic 实现 Basic 校验 https://tools.ietf.org/html/rfc7617
Package basic 实现 Basic 校验 https://tools.ietf.org/html/rfc7617
Package digest 实现 digest 验证 NOTE: 这是个未完成的功能,请勿使用 https://tools.ietf.org/html/rfc7616 TODO: Authorization-Info 等输出的处理
Package digest 实现 digest 验证 NOTE: 这是个未完成的功能,请勿使用 https://tools.ietf.org/html/rfc7616 TODO: Authorization-Info 等输出的处理

Jump to

Keyboard shortcuts

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