You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get the OIDC mechanism to work in a clustered wildfly (31) setup but it appears to be impossible at the moment:
10:13:44,620 WARN [org.infinispan.PERSISTENCE] (default task-2) ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject': java.io.NotSerializableException: org.glassfish.soteria.mechanisms.openid.domain.AccessTokenImpl
at [email protected]//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:278)
at [email protected]//org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1182)
[SNIP]
Caused by: an exception which occurred:
in field org.wildfly.security.soteria.original.OpenIdContextImpl.accessToken
in object org.wildfly.security.soteria.original.OpenIdContextImpl@36da2ead
in field org.jboss.weld.contexts.SerializableContextualInstanceImpl.instance
in object org.jboss.weld.contexts.SerializableContextualInstanceImpl@3d87e427
in object org.jboss.weld.contexts.SerializableContextualInstanceImpl@3d87e427
in object java.util.concurrent.ConcurrentHashMap@4fed9dbc
Is that an oversight or am I using it the wrong way?
The text was updated successfully, but these errors were encountered:
bjorndown
changed the title
<distributable/> app: org.glassfish.soteria.mechanisms.openid.domain.AccessTokenImpl is not serializable
<distributable/> app: AccessTokenImpl is not serializable
Mar 27, 2024
Coming back to this, after a while. It seems I got a working protostream marshaller for AccessTokenImp, but I am now stuck with serializing OpenIdContextImpl:
org.infinispan.protostream.annotations.ProtoSchemaBuilderException: The class org.glassfish.soteria.mechanisms.openid.domain.IdentityTokenImpl must be instantiable using an accessible no-argument constructor.
I don't know a lot about java serialization, but from what I have read it is a problem that OpenIdContext implements Serializable but references objects which aren't.
EDIT: I spoke too soon. The field JsonObject claims of OpenIdContextImpl is not easily serializable with Protostream because it requires a concrete class.
EDIT 2: Ended up serializing the claims as JSON string. So far it seems to work.
I am trying to get the OIDC mechanism to work in a clustered wildfly (31) setup but it appears to be impossible at the moment:
Is that an oversight or am I using it the wrong way?
The text was updated successfully, but these errors were encountered: