mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
realm should be a singleton
This commit is contained in:
@@ -37,6 +37,7 @@ package sonia.scm.security;
|
|||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.google.common.collect.Sets;
|
import com.google.common.collect.Sets;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import org.apache.shiro.authc.AccountException;
|
import org.apache.shiro.authc.AccountException;
|
||||||
import org.apache.shiro.authc.AuthenticationException;
|
import org.apache.shiro.authc.AuthenticationException;
|
||||||
@@ -92,6 +93,7 @@ import javax.servlet.http.HttpServletRequest;
|
|||||||
*
|
*
|
||||||
* @author Sebastian Sdorra
|
* @author Sebastian Sdorra
|
||||||
*/
|
*/
|
||||||
|
@Singleton
|
||||||
public class ScmRealm extends AuthorizingRealm
|
public class ScmRealm extends AuthorizingRealm
|
||||||
implements RepositoryListener, UserListener
|
implements RepositoryListener, UserListener
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user