forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue apache#3653: Kerberos authentication for web resource support (a…
…pache#4097) Fixes apache#3653 Master Issue: apache#3491 ** Motivation Add kerberos support for web resource support. This mainly include 2 parts: - the HttpClient that works for HttpLookup. - the BaseResource that works for admin rest end point. *** Modifications For kerberos authentication, there need several back/forth requests to do the negotiation between client and server. This change add a method authenticationStage in AuthenticationSasl, and a method authenticateHttpRequest in AuthenticationProviderSasl to do the mutual negotiation. And a saslRoleToken is cached in AuthenticationSasl once the authentication get success. When do the sasl authentication, it will first use saslRoleToken cache, and if sever check this token failed, do real sasl authentication. Changed unit test SaslAuthenticateTest, which enable sasl authentication in admin and also use http lookup to verify the change.
- Loading branch information
Showing
31 changed files
with
1,242 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.