-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hard-coded Token
auth-scheme in WWW-Authenticate
challenge
#180
Comments
@jmm agree that naming |
Thanks! @nelsonic Yeah, updating it so the |
Agreed. 👍 |
This package is hard-coded to respond to requests that lack valid authentication credentials with a hard-coded scheme value of
Token
, even though by default it's configured to acceptAuthorization
header values with no scheme (which I think is questionable) or with schemeBearer
, and even if a scheme is explicitly configured viaoptions.tokenType
(which may not be the clearest name -- perhaps something likehttpAuthScheme
would be clearer)./lib/index.js
has multiple hard-codedToken
string literals for the scheme argument toBoom.unauthorized()
, which is propagated to theWWW-Authenticate
header.So shouldn't the
tokenType
value be used to populate the scheme sent in the response headers? Example:The text was updated successfully, but these errors were encountered: