Server stuck with Basic Authentication
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Hi and thanks for the great plugin!
I am trying to make it work with Basic Authentication but the server gets stuck.
I am using the example on the readme with these plugin options
```
offerSSPI: false
offerBasic: true
```
The browser prompts for the authentication, then via console.log I can verify that the server authenticates the user and reaches the reply but the browser keeps waiting for a couple of minutes before receiving it or giving a timeout.
If I use the options above in node-sspi standard example, the one with express, it works just fine.
I tried investigating if it was something connected with node-sspi finishing the request outside of hapi request lifecycle but was not able to come up with a solution.
Any suggestion?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the README authentication example and compare its hapi request lifecycle with the node-sspi standard Express example described in the report. Reproduce the Basic Authentication flow with offerSSPI: false and offerBasic: true, then trace why the authenticated reply does not reach the browser promptly; done means the browser receives the response without a timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, javascript, node.js
- Domain
- api, authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100