Skip to content
Snippets Groups Projects
Commit 08e0a2e6 authored by Nicholas Blair's avatar Nicholas Blair
Browse files

Merge branch 'deprecate-attributesmapper' into 'master'

deprecate: LocalUserDetailsAttributesMapper

I'm preparing a 1.7.0 release, thought I'd stick this in there as well.

See merge request !26
parents dd3aeb01 664b7383
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,11 @@ import java.util.List;
* If you have custom {@link UWUserDetails} that depend on services/daos to complete the model,
* you may want to consider implementing a {@link LocalUsersAuthenticationAttemptCallback}; that interface
* participates in the authentication attempt itself, not during application initialization.
*
*
* @deprecated use {@link LocalUserDetailsLoader} instead, to be removed in 2.0
* @author Nicholas Blair
*/
@Deprecated
public interface LocalUserDetailsAttributesMapper {
/**
......
......@@ -17,9 +17,15 @@ import edu.wisc.uwss.UWSpringSecurityException;
/**
* Interface for loading {@link UWUserDetails} instances from configuration.
*
* This interface is an alternative to {@link LocalUserDetailsAttributesMapper}.
* This interface is used during application initialization - not during
* authentication attempts. Since it is executed during Spring ApplicationContext initialization,
* implementations should avoid injecting other service or dao interfaces, as it may be
* affected by a race condition.
*
* If you have custom {@link UWUserDetails} that depend on services/daos to complete the model,
* you may want to consider implementing a {@link LocalUsersAuthenticationAttemptCallback}; that interface
* participates in the authentication attempt itself, not during application initialization.
*
* @see {@link LocalUserDetailsAttributesMapper}
* @see {@link LocalUserDetailsLoader.Default}
* @author Nicholas Blair
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment