communitypackages:rest-bearer-token-parser

v1.1.2Published 16 hours ago

Compatibility

Compatible with Meteor 2.4

This repository provides versions for the package communitypackages:rest-json-error-handler that are compatible with latest Meteor. This is necessary because the author is not maintaining package anymore.

Changes

  • v1.1.1
    • Update communitypackages:json-routes to 2.3.0
  • v1.1.0
    • api.versionsFrom on Package.onUse was changed from 1.0 to 2.4.

communitypackages: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>