Skip to content

Commit

Permalink
http/preprocessors: update outdated Basic Auth comment (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn authored Sep 13, 2023
1 parent 2cf7c27 commit a0c83d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/preprocessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const authHandler = ({ Sessions, Users, Auth, bcrypt }, context) => {
// auth by the bearer token we found:
return authBySessionToken(authHeader.substring(7), () => reject(Problem.user.authenticationFailed()));

// Basic Auth, which is allowed over HTTPS only:
// Basic Auth, which is allowed under certain circumstances:
} else if (isPresent(authHeader) && authHeader.startsWith('Basic ')) {
if (oidc.isEnabled()) return reject(Problem.user.basicAuthNotSupportedWhenOidcEnabled());

Expand Down

0 comments on commit a0c83d8

Please sign in to comment.