mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-19 22:08:06 +01:00
Add an interceptor interface for WebSocket authentication
This commit is contained in:
committed by
Jon Chambers
parent
59d984e25d
commit
552079d3c2
@@ -49,7 +49,7 @@ public class WebSocketAccountAuthenticator implements WebSocketAuthenticator<Aut
|
||||
return CREDENTIALS_NOT_PRESENTED;
|
||||
}
|
||||
return basicCredentialsFromAuthHeader(authHeader)
|
||||
.flatMap(credentials -> accountAuthenticator.authenticate(credentials))
|
||||
.flatMap(accountAuthenticator::authenticate)
|
||||
.map(authenticatedAccount -> ReusableAuth.authenticated(authenticatedAccount, this.principalSupplier))
|
||||
.orElse(INVALID_CREDENTIALS_PRESENTED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user