File tree 1 file changed +4
-3
lines changed
src/Security/Authentication/Negotiate/src
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,8 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
171
171
if ( IsHttp2 )
172
172
{
173
173
// Not supported. We don't throw because Negotiate may be set as the default auth
174
- // handler on a server that's running HTTP/1 and HTTP/2.
174
+ // handler on a server that's running HTTP/1 and HTTP/2. We'll challenge HTTP/2 requests
175
+ // that require auth and they'll downgrade to HTTP/1.1.
175
176
return AuthenticateResult . NoResult ( ) ;
176
177
}
177
178
@@ -199,14 +200,14 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
199
200
{
200
201
Principal = user
201
202
} ;
202
- await Events . OnAuthenticated ( authenticatedContext ) ;
203
+ await Events . Authenticated ( authenticatedContext ) ;
203
204
204
205
if ( authenticatedContext . Result != null )
205
206
{
206
207
return authenticatedContext . Result ;
207
208
}
208
209
209
- var ticket = new AuthenticationTicket ( user , Scheme . Name ) ;
210
+ var ticket = new AuthenticationTicket ( authenticatedContext . Principal , authenticatedContext . Properties , Scheme . Name ) ;
210
211
return AuthenticateResult . Success ( ticket ) ;
211
212
}
212
213
You can’t perform that action at this time.
0 commit comments