Comments (5)
@pushkarnk thanks for the heads up. @Andrew-Lees11 is going to add a line into the Routing documentation on kitura.io about the order of execution and we're also going to start work on a middleware guide, which should go into more detail about the order of execution.
from kitura-credentialshttp.
Also confirmed by Pushkar Kulkarni. From Slack conversation:
pushkarnk
Yup, this is easily reproducible. And it happens in a browser window too. So, doesn't look like an OpenAPI UI issue alone. It appears like HTTPBasic auth is broken
from kitura-credentialshttp.
It may prove a good idea to add a unit test for this as well.
from kitura-credentialshttp.
It turned out that the Credentials middleware was configured after configuring the route handler.
IMO, this critical nature of the order in which middleware is configured may not be clear to new users. As @dillan asked over slack, I'm not sure if it is possible to have any safeguards against doing these in a wrong order. Any thoughts @djones6 / @ianpartridge ?
The Routing documentation does talk about an order of execution for middleware and route handlers. But may be we should document this user error as a warning there? cc @helenmasters
from kitura-credentialshttp.
Thanks @helenmasters
from kitura-credentialshttp.
Related Issues (12)
- Rename module to Kitura-CredentialsHTTP HOT 1
- ld: library not found for -lCHttpParser for architecture x86_64
- fatal error CredentialsHTTPBasic.swift:96 on wrong headers
- VerifyPassword should use an escaping closure HOT 1
- The example in the README file is not updated HOT 2
- Update for Swift 4 HOT 1
- Issue with linking of CommonCrypto HOT 8
- issue: The manifest file at https://github.com/IBM-Swift/CommonCrypto.git (0.1.3) is empty HOT 2
- Can I custom the login page?
- Incorrect handling of password containing colon in HTTP Basic Authentication. HOT 1
- Authenticating specific resources? HOT 1
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 kitura-credentialshttp.