Package org.dspace.rest.authentication
Class DSpaceAuthenticationProvider
- java.lang.Object
-
- org.dspace.rest.authentication.DSpaceAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class DSpaceAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
The core authentication & authorization provider, this provider is called when logging in & will process- Author:
- Roeland Dillen (roeland at atmire dot com), kevinvandevelde at atmire.com FIXME This provider handles both the authorization as well as the authentication, due to the way that the DSpace authentication is implemented there is currently no other way to do this.
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthenticationService
authenticationService
-
Constructor Summary
Constructors Constructor Description DSpaceAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSpecialGroupsToGrantedAuthorityList(Context context, javax.servlet.http.HttpServletRequest httpServletRequest, List<org.springframework.security.core.authority.SimpleGrantedAuthority> grantedAuthorities)
org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
boolean
supports(Class<?> authentication)
-
-
-
Field Detail
-
authenticationService
protected AuthenticationService authenticationService
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
addSpecialGroupsToGrantedAuthorityList
protected void addSpecialGroupsToGrantedAuthorityList(Context context, javax.servlet.http.HttpServletRequest httpServletRequest, List<org.springframework.security.core.authority.SimpleGrantedAuthority> grantedAuthorities) throws SQLException
- Throws:
SQLException
-
supports
public boolean supports(Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-