Documentation
¶
Index ¶
Constants ¶
View Source
const CustomAlgHeader = "customalg"
CustomAlgHeader is the `alg` JSON attribute's value for the example custom jwt.SigningMethod.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyCustom ¶
type EmptyCustom struct{}
EmptyCustom implements the jwt.SigningMethod interface. It will not sign or verify anything.
func (EmptyCustom) Alg ¶
func (e EmptyCustom) Alg() string
Alg helps implement the jwt.SigningMethod. It returns the `alg` JSON attribute for JWTs signed with this method.
Click to show internal directories.
Click to hide internal directories.