🚧 Remove strategy, Add Drop match

This commit is contained in:
2026-06-28 18:21:26 +02:00
parent fc2454061f
commit 30665fdaa5
16 changed files with 113 additions and 163 deletions
@@ -3,7 +3,7 @@ package dev.dinauer.oidcproxy.session;
import dev.dinauer.oidcproxy.JwtUtils;
import dev.dinauer.oidcproxy.callback.OidcClient;
import dev.dinauer.oidcproxy.callback.model.TokenResponse;
import dev.dinauer.oidcproxy.proxy.exception.TokenNotFoundException;
import dev.dinauer.oidcproxy.proxy.exception.ProxyAuthenticationFailedException;
import io.quarkus.security.UnauthorizedException;
import io.smallrye.jwt.auth.principal.DefaultJWTParser;
import jakarta.enterprise.context.ApplicationScoped;
@@ -49,7 +49,7 @@ public class SessionService
}
@Transactional
public AccessToken provide(String sessionHash) throws TokenNotFoundException
public AccessToken provide(String sessionHash) throws ProxyAuthenticationFailedException
{
AccessTokenEntity dbToken = accessTokenRepository.findById(sessionHash);
if (isValid(dbToken))
@@ -74,11 +74,11 @@ public class SessionService
}
catch (Exception e)
{
throw new TokenNotFoundException();
throw new ProxyAuthenticationFailedException();
}
}
throw new TokenNotFoundException();
throw new ProxyAuthenticationFailedException();
}
@Transactional