MCPcopy Index your code
hub / github.com/restify/node-restify / parseSignature

Function parseSignature

lib/plugins/authorization.js:65–76  ·  view source on GitHub ↗
(request, options)

Source from the content-addressed store, hash-verified

63}
64
65function parseSignature(request, options) {
66 var opts = options || {};
67 opts.algorithms = OPTIONS.algorithms;
68
69 try {
70 return httpSignature.parseRequest(request, options);
71 } catch (e) {
72 throw new InvalidHeaderError(
73 'Authorization header invalid: ' + e.message
74 );
75 }
76}
77
78/**
79 * Parses out the `Authorization` header as best restify can.

Callers 1

parseAuthorizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected