cleanup code & add tests

This commit is contained in:
Konstantin Schaper
2020-08-20 18:57:58 +02:00
parent 44edb48771
commit 34dc7fdac0
6 changed files with 201 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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;