salesflare / hapi-auth-bearer-simple Goto Github PK
View Code? Open in Web Editor NEWHapi authentication plugin for bearer token validation
License: MIT License
Hapi authentication plugin for bearer token validation
License: MIT License
Branch | Build failing π¨ |
---|---|
Dependency | hapi |
Current Version | 16.2.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As hapi is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 20 commits.
1a41f15
Merge pull request #3479 from AJamesPhillips/docs-16.1.1
3d4f0fc
Merge pull request #3461 from hapijs/socket-destroy
ba95396
Merge pull request #3441 from kanongil/revise-normalize
279def5
Cleanup for #3409
241d7b0
Merge pull request #3409 from gordysc/master
d2de2e7
Merge pull request #3504 from kanongil/fix-flaky-test
6469604
Fix flaky test from #3472
081f365
Simplify request host update
ca1b9aa
Update host info on request.setUrl(). Closes #3430
c315706
Fix several request.url property issues
eb0a606
Minor changes to docs
760f433
Add partition and dropOnError to API docs
79720b9
Partially revert c88266e5
2d2dfaf
Add link to server cache options
8da535a
Docs update Might instead of May. Add other response methods of hold, send, takeover
There are 20 commits in total.
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
7.2.0
to 7.2.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
boom is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | code |
Current Version | 4.0.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As code is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 7 commits.
2559673
v4.1.0
38df73b
print expected value in assertion messages
df0113b
update dependencies and test Node 8
461fdb1
add link to Hoek.contain() from includes()
3d9dfc3
add NaN() assertion
d6f7d4b
test Node v7 on travis
c11a9d3
update dependencies
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Hi. Please update Hapi version to 14.x.x to avoid UNMET PEER DEPENDENCY warnings. API seems wasn't changed.
Branch | Build failing π¨ |
---|---|
Dependency | hapi |
Current Version | 16.4.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As hapi is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 44 commits.
c89269a
Update statehood. Closes #3551
89e2b20
Update content. Closes #3550
ae12c40
Drain request stream on special handlers. Closes #3480
355e8eb
Switch to use Boom.boomify()
5269898
Update boom. Closes #3548
f1709a3
Update joi. Closes #3545
f818228
Update deps. Closes #3543. Closes #3544
2afa365
Handle emitter errors in request lifecycle. Closes #3464
0f70551
Optimize request emitter creation. Closes #3532
23d83dd
Update podium. Closes #3542
d54e4f6
Update hoek. Closes #3541
52a03b1
Cleanup for #3539
b947831
Merge pull request #3539 from jeff-kilbride/feature/payload_failAction_custom_handler
9f8ea61
16.5.0
832ed3d
Merge pull request #3526 from hapijs/wildcard-debug
There are 44 commits in total.
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
I am trying to use this module to enable bearer token on my app. However, I am getting the error shown in the title.
I am trying to implement this module to enable token authorisation in my app But I am getting error mentioned below
e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\node_modules\hoek\lib\index.js:723
I have a route file
`module.exports = [
{
method: 'GET',
path: '/api/{_id?}',
handler: function (request, reply) {
Controller.control.get(request.params, function (err, success) {
console.log(request.params);
if (err) {
reply(unifunc.sendError(err));
} else {
reply(unifunc.sendSuccess(SuccessMsg,success)).code(200);
}
});
},
config: {
description: 'desc',
tags: ['api', 'oV'],
validate: {
headers: unifunc.authorizationHeaderObj,
params: {
o_id: Joi.string().required().trim(),
_id: Joi.string().optional().trim()
},
failAction: unifunc.failActionFunction
},
auth: {
strategy: 'bearer',
scope: ['admin', 'user-{params.id}']
},
plugins: {
'hapi-swagger': {
responseMessages: msgs
}](url)
and a controller file in which I mentioned strategy
var bearerSimple= require('hapi-auth-bearer-simple')
authorization = Authorization.auth; // This plugin has the logic to validate the token and return the error in case it fails and I am passing accesstoken as parameter in a function in that file
var getV = function(server, params, callbackRoute){
server.register(
[{
register: bearerSimple
}], function(err){
if(err){
console.log("Failed to log the plugin",err);
throw err;
}
server.auth.strategy('bearer', 'bearerAuth', {
authorization : authorization
});
});
console.log(params);
async.series([
function(cb){}
]}
The error message is:
Error: Unknown authentication strategy: bearer in path: /api/orders/{order_id}/vehicles/{_id?}
at Object.exports.assert (e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\node_modules\hoek\lib\index.js:723:11)
at e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\lib\auth.js:152:14
at Array.forEach (native)
at internals.Auth._setupRoute (e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\lib\auth.js:149:24)
at new module.exports.internals.Route (e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\lib\route.js:142:47)
at internals.Connection._addRoute (e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\lib\connection.js:375:17)
at internals.Connection._route (e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\lib\connection.js:367:18)
at wrappedRoute [as _route] (e:\python_training\Training\Node\Test\Project\Backend\node_modules\newrelic\lib\instrumentation\hapi.js:222:29)
at internals.Plugin._apply (e:\python_training\Training\Node\Test\Project\Backend\node_modules\hapi\lib\plugin.js:460:14)
at internals.Plugin.route
Is there any way I can resolve this issue?
Branch | Build failing π¨ |
---|---|
Dependency | hapi |
Current Version | 16.6.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 143 commits.
199bfa6
Update README.md
4a513e0
Update README.md
e8a7e85
Update README.md
046f0de
Update README.md
a13fb3b
Update README.md
4df10fc
Update README.md
6de4ca7
Update README.md
8d046a5
Update sponsors
f5b48fc
v17.0.0
0e0970a
Update document format
26b42d2
Merge pull request #3666 from midnightcodr/master
f0056eb
Update deps
675dc79
Update deps
64b4325
Update deps
74eed25
Handle errors better
There are 143 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
5.2.0
to 5.2.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
code is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
b458d13
v5.2.1
03d7b92
update deps and test on node 11
0dfe00e
Add the correct thrownAt() location when using expect().to.reject()
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Is this plugin compatible with hapijs v17 ?
How can I integrate it to hapijs v17?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.