mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 20:30:52 +01:00
cleanup code & add tests
This commit is contained in:
@@ -38,7 +38,7 @@ import java.util.Optional;
|
||||
|
||||
public class ScmAtLeastOneSuccessfulStrategy extends AbstractAuthenticationStrategy {
|
||||
|
||||
private final ThreadLocal<List<Throwable>> threadLocal = new ThreadLocal<>();
|
||||
final ThreadLocal<List<Throwable>> threadLocal = new ThreadLocal<>();
|
||||
|
||||
@Override
|
||||
public AuthenticationInfo beforeAllAttempts(Collection<? extends Realm> realms, AuthenticationToken token) throws AuthenticationException {
|
||||
|
||||
@@ -48,7 +48,7 @@ import java.io.IOException;
|
||||
@Priority(Filters.PRIORITY_PRE_AUTHENTICATION)
|
||||
@Singleton
|
||||
public class TokenExpiredFilter extends HttpFilter {
|
||||
private static final String TOKEN_EXPIRED_ERROR_CODE = "DDS8D8unr1";
|
||||
static final String TOKEN_EXPIRED_ERROR_CODE = "DDS8D8unr1";
|
||||
private static final Logger LOG = LoggerFactory.getLogger(TokenExpiredFilter.class);
|
||||
|
||||
private final AccessTokenCookieIssuer accessTokenCookieIssuer;
|
||||
|
||||
Reference in New Issue
Block a user