Hello,
I implemented the Payara OpenId Connector in order to authenticate with the Keycloak OIDC provider. I am using Payara Community 5.2022.5
I reach the Keycloak authentication form after visiting a protected page and I login with an existing user.
The session is created on keycloak and the callback is invokated apparently without errors (http 200) but I cannot print or log any info from the context.
Using the fish.payara.security logger I obtain these errors:
- UserPrincipal is not set, authenticate user using OpenId Connect protocol.|#]
- Expected state not found|#]
I cannot not find any reference about these errors, so it is very difficult to understand what’s happen exaclty.
It looks the UserPrincipal is not created, so Payara is not aware of the existing session on Keycloak.
In fact, if I visit another protected page the callback is invokated again, but the logon is no more necessary as I said the logged session exists on Keycloak.
Do you have any idea or experience on this issue ?
Thank you in advance !
Robert