diff options
author | Thomas <> | 2023-05-13 15:18:03 +0200 |
---|---|---|
committer | Thomas <> | 2023-05-13 15:18:03 +0200 |
commit | 54f16e552a3d6c5579282de5c8d6a92395f6c049 (patch) | |
tree | b01be728915391f1ed40cdf07fc6248fc3365f83 /eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth | |
parent | 77ce26202ad7f1c36c2c5c385a4388b96d6bad65 (diff) | |
download | EAAF-Components-54f16e552a3d6c5579282de5c8d6a92395f6c049.tar.gz EAAF-Components-54f16e552a3d6c5579282de5c8d6a92395f6c049.tar.bz2 EAAF-Components-54f16e552a3d6c5579282de5c8d6a92395f6c049.zip |
refact(core): remove double serialization in central error handling
Diffstat (limited to 'eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java index 76687749..98ea339e 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java @@ -37,7 +37,6 @@ import org.springframework.context.ApplicationContext; import org.springframework.lang.NonNull; import org.springframework.lang.Nullable; import org.springframework.stereotype.Service; -import org.springframework.util.SerializationUtils; import at.gv.egiz.components.eventlog.api.EventConstants; import at.gv.egiz.eaaf.core.api.IRequest; @@ -248,12 +247,11 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer if (errorData.getErrorIdTokenForRedirect() != null) { // Put pending request final ExceptionContainer exceptionContainer = new ExceptionContainer(protocolRequest, throwable); - final byte[] serialized = SerializationUtils.serialize(exceptionContainer); log.debug("Put error into cache to support SP forwarding ... "); String internalErrorToken = pendingReqIdGenerationStrategy.getPendingRequestIdWithOutChecks( errorData.getErrorIdTokenForRedirect()); log.trace("errorIdToken: {}", internalErrorToken); - transactionStorage.put(internalErrorToken, serialized, -1); + transactionStorage.put(internalErrorToken, exceptionContainer, -1); } else { log.debug("No errorTokenId. Forwarding to SP will not be available"); |