Comments (4)
Hey @jonathansamines, that sounds like a cool idea, and shouldn't need much work. Where would you see yourself using it?
To make the update will need to update:
- lib/index.js: add a plugin.expose()
- test/index.js: add a test and ensure we still have 100% coverage
- README: update the documentation
from hapi-auth-bearer-token.
@johnbrett sorry for the delay, IΒ΄m currently dealing with a custom token-validation logic, which uses the bearer token scheme, so I was trying to use this plugin as part of other plugin, to validate the bearer-token format and then use my custom logic in the other plugin.
It seems like hapi doesnΒ΄t support multi-step authentication strategies, so the only way to combine multiple strategies together is by exposing that kind of interface.
from hapi-auth-bearer-token.
Hey @jonathansamines, sorry for the delay myself this time. That makes sense. Do you want to try put together a PR for this and we can work through it ?
from hapi-auth-bearer-token.
Hey @jonathansamines - haven't had any activity on this a while so will close it. If you want to work further on this, feel free to re-open - happy to work on it with you.
from hapi-auth-bearer-token.
Related Issues (20)
- Undefined token passed to validate function HOT 3
- Version 6.0.1 typescript not job HOT 3
- Required plugin HOT 4
- add git tags that match published versions HOT 2
- An in-range update of joi is breaking the build π¨ HOT 3
- if validation fails, please make credentials object to be optional HOT 7
- An in-range update of joi is breaking the build π¨ HOT 4
- Error 500 on invalid token HOT 22
- Double validation error HOT 1
- An in-range update of code is breaking the build π¨ HOT 4
- An in-range update of boom is breaking the build π¨ HOT 2
- An in-range update of hapi is breaking the build π¨ HOT 5
- Exception when allowChaining is true and the strategies are defined via default auth value HOT 1
- How to customize own error? HOT 8
- Update & bump π· HOT 2
- "Error 500, invalid token, data null" when recalling the previous token in Alamofire HOT 1
- allowMultipleHeaders: true should allow read two headers as array in token HOT 5
- Library does not work with the new independent "joi" library which has now split from @hapi/joi HOT 1
- version 8.0.0 HOT 3
- New feature: multiple auth token names HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hapi-auth-bearer-token.