Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.uid2</groupId>
<artifactId>uid2-operator</artifactId>
<version>5.70.280</version>
<version>5.70.281-alpha-332-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,15 @@ private RefreshResponse refreshIdentity(RoutingContext rc, String tokenStr) {
} catch (ClientInputValidationException cie) {
LOGGER.warn("Failed to decode refresh token for site ID: " + rc.data().get(Const.RoutingContextData.SiteId), cie);
return RefreshResponse.Invalid;
} catch (Exception e) {
if (e.getCause() instanceof BadPaddingException || e.getCause() instanceof IllegalBlockSizeException) {
LOGGER.warn("Failed to decode refresh token for site ID: " + rc.data().get(Const.RoutingContextData.SiteId), e);
} else {
LOGGER.error("Unexpected error decoding refresh token for site ID: " + rc.data().get(Const.RoutingContextData.SiteId), e);
}
return RefreshResponse.Invalid;
}

if (refreshToken == null) {
return RefreshResponse.Invalid;
}
Expand Down