Skip to content

Commit 07eb9a9

Browse files
committed
fix incorrect header
1 parent c18d020 commit 07eb9a9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

server/auth/types/kerberos/routes.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ export class KerberosAuthRoutes {
4949
user = await this.securityClient.authinfo(request);
5050
} catch (error) {
5151
context.security_plugin.logger.error(`Failed authentication: ${error}`);
52-
return response.unauthorized({
53-
body: `Kerberos authentication failed ${error}`,
54-
headers: 'WWW-Authenticate: Negotiate',
55-
});
52+
return response.unauthorized(
53+
{
54+
body: `Kerberos authentication failed ${error}`,
55+
headers: {
56+
'www-authenticate': 'Negotiate',
57+
},
58+
});
5659
}
5760

5861
// clear session

0 commit comments

Comments
 (0)