Skip to content

Commit d3ca59b

Browse files
committed
fixed inverted token cache timeout logic
1 parent c43c3b8 commit d3ca59b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dsf-bpe/dsf-bpe-server/src/main/java/dev/dsf/bpe/client/oidc/OidcClientWithCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public DecodedJWT getAccessTokenDecoded() throws OidcClientException
115115
@Override
116116
public DecodedJWT getAccessTokenDecoded(Configuration configuration, Jwks jwks) throws OidcClientException
117117
{
118-
if (accessTokenCache != null && accessTokenCache.timeout.isBefore(ZonedDateTime.now()))
118+
if (accessTokenCache != null && accessTokenCache.timeout.isAfter(ZonedDateTime.now()))
119119
return accessTokenCache.resource;
120120
else
121121
{

0 commit comments

Comments
 (0)