Documentation ¶
Index ¶
Constants ¶
View Source
const ( TokenPrefixBearer = "Bearer " AppointedSeatHeader = "header:Authorization" )
Variables ¶
View Source
var (
ErrInvalidToken = errors.New("invalid token")
)
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*profile)
func SetAppointedSeat ¶
SetAppointedSeat the seat parameter is a string in the form of "<source>:<name>" that is used to extract token from the request. Possible values: - "header:<name>" - "query:<name>" - "cookie:<name>"
func SetExpired ¶
func SetKeyFunc ¶
func SetSigningKey ¶
func SetSigningKey(key interface{}) Option
func SetSigningMethod ¶
func SetSigningMethod(method kinet.SigningMethod) Option
func SetTokenPrefix ¶
Click to show internal directories.
Click to hide internal directories.