🚧 Remove strategy, Add Drop match
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user