We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f460371 commit 39fbe66Copy full SHA for 39fbe66
lib/handlers/authenticate-handler.js
@@ -138,7 +138,7 @@ AuthenticateHandler.prototype.getTokenFromRequest = function(request) {
138
139
AuthenticateHandler.prototype.getTokenFromRequestHeader = function(request) {
140
const token = request.get('Authorization');
141
- const matches = token.match(/^Bearer\s(\S+)/);
+ const matches = token.match(/^Bearer\s([0-9a-zA-Z-._~+/]+=*)$/);
142
143
if (!matches) {
144
throw new InvalidRequestError('Invalid request: malformed authorization header');
0 commit comments