-
Deprecated MethodsMethodDescriptionuse and implement
AuthenticationProvider.authenticateAsync(AuthenticationDataSource)instead.implementations that previously relied on this should update their implementation ofAuthenticationProvider.authenticateHttpRequest(HttpServletRequest, HttpServletResponse)or ofAuthenticationProvider.authenticateHttpRequestAsync(HttpServletRequest, HttpServletResponse)so that the desired attributes are added in those methods.Note: this method was only ever used to generate an
AuthenticationStateobject in order to generate anAuthenticationDataSourcethat was added as theAuthenticatedDataAttributeNameattribute to the http request. Removing this method removes an unnecessary step in the authentication flow.use and implementAuthenticationState.authenticateAsync(AuthData)instead.this method's logic is captured by the result ofAuthenticationState.authenticateAsync(AuthData). When the result is aCompletableFuturewith a null result, authentication is complete. When the result is aCompletableFuturewith a nonnull result, authentication is incomplete and requires an auth challenge.rely on result fromOneStageAuthenticationState.authenticateAsync(AuthData). For more information, see the Javadoc forAuthenticationState.isComplete().- will be removed after 2.12. Use async variant.- will be removed after 2.12. Use async variant.- will be removed after 2.12. Use async variant.- will be removed after 2.12. Use async variant.Since this method may introduce inconsistent namespace policies. we should use #NamespaceResources.getPoliciesAsync(org.apache.pulsar.common.naming.NamespaceName)Use#getSubscriptionTypesEnabled()instead
AuthenticationProviderorAuthenticationState.