-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement
Milestone
Description
The proposal is to have generic Authentication filter which will be able to provide single authentication strategy regardless of authentication type.
The Servlet API based authentication process commonly consist of following stages:
- Expose
Authentication
from request (supply); - If there is no supported
Authentication
provided then proceed filter chain; - If there is supported
Authentication
then try to authenticate it withAuthenticationManager
; - If the authentication succeed then proceed filter chain with "authenticated"
Authentication
; - If the authentication failed then provide appropriate response with
AuthenticationEntryPoint
;
The first stage, from above, can be done with AuthenticationSupplier
interface:
public interface AuthenticationSupplier<T extends Authentication> extends AuthenticationEntryPoint {
T supply(HttpServletRequest request) throws AuthenticationException;
AuthenticationType getAuthenticationType();
}
This issue targets to clarify proper implementation previously suggested within PR #6496.
carlspring, steve-todorov, fuss86, ptirador, DevAlves1993 and 3 more
Metadata
Metadata
Assignees
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement