Open bjorndown opened 8 months ago
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.
Managed to work around this by creating custom marshallers for protostream: https://github.com/bjorndown/soteria-oidc-protostream-marshaller
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?