Comments (4)
So hapi master with lout master, and an auth scheme loaded with defaultMode?
from lout.
It was Hapi commit 3b2d53f96a3a8d3d0f17c7c669b5f12f98f7bfa2 "Cleaning up tests and schema to work with latest joi, lout" (no longer master) and the current Lout master. Hawk in defaultMode: true.
I will pull the latest changes to Hapi and see if that changes anything.
from lout.
Are you trying to require auth or ignore auth?
from lout.
So, I have:
server.plugin.require('lout', function() {
return server.start();
});
and the server is configured with
{
cors: {
additionalHeaders: ['Cache-Control']
},
files: {
relativeTo: 'routes'
},
auth: {
scheme: 'hawk',
getCredentialsFunc: function(id, callback) {
// ...
});
},
defaultMode: true
}
}
So what happens is, I guess, because authentication is enabled by default on all routes, it's also enabled on the route added by Lout (/docs) and therefore you'd need to be authenticated to access it. So, if you can add an option to specify that you want the route added by Lout to have auth: false in its config, it would solve the problem. This would be to ignore the auth.
from lout.
Related Issues (20)
- view routes by tag? HOT 2
- Dependencies update? HOT 6
- Update guidelines for contributing
- Add Content Security Policy using blankie
- Possible formatting error in templates-->route.html HOT 5
- Update lout to latest dependencies versions
- 10.0.0 Release Notes
- default value not displayed if false HOT 1
- rendering badly on google app engine HOT 1
- custom text ? HOT 3
- Joi's minimum value of `0` is not displayed
- Plugins for lout HOT 1
- Housekeeping HOT 2
- hapi v17 support HOT 12
- 11.0.0 Release Notes
- How to include headers in documentation HOT 2
- Warning when install the module HOT 7
- Support joi 14
- Update deps
- Fix joi dep
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 lout.