Documentation ¶
Index ¶
- Variables
- func IsAuthenticatedFromContext(ctx context.Context) bool
- func NewContextFromAuthValues(ctx context.Context, claims hjwt.ClaimsCarrier, token *jwt.Token, ...) context.Context
- func NewContextFromAuthorization(ctx context.Context, req *http.Request, j *hjwt.JWT, p policy.Storage) context.Context
- func PoliciesFromContext(ctx context.Context) ([]policy.Policy, error)
- func SubjectFromContext(ctx context.Context) (string, error)
- func TokenFromContext(ctx context.Context) (*jwt.Token, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AuthKey Key = 0
)
Functions ¶
func TokenFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.