simple:rest-bearer-token-parser

v1.0.0Published 6 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

simple:rest-accounts-bearer-token

SimpleRest middleware for parsing a standard bearer token from an HTTP request

Middleware Name

This middleware can be accessed as:

JsonRoutes.Middleware.parseBearerToken

Request Properties Required

  • None

Request Properties Modified

  • request.authToken
    • String
    • The parsed bearer token, or null if none is found

Usage

Accepts tokens passed via the standard header or URL query parameter (whichever is found first, in that order).

The header signature is: Authorization: Bearer <token>

The query signature is: ?access_token=<token>