Hi,
The traces in logs_DefaultCell01_DefaultNode01_server11646161481911.txt show that the OIDC flow with the OP was successful, but there was a problem mapping the user,
3/1/22 19:02:25:283 UTC] 000000ad WebAuthentica 3 Username retrieved from TAI is [Andrea]
[3/1/22 19:02:25:283 UTC] 000000ad WebAuthentica 3 Map credentials for Andrea.
[3/1/22 19:02:25:288 UTC] 000000ad FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_9d48ffb0_22.03.01_19.02.25.2847681192626960899497.txt com.ibm.ws.security.server.lm.wsMapDefaultInboundLoginModule.login 1114
This causes a redirection to the login page,
[3/1/22 19:02:25:306 UTC] 000000ad WebAuthentica < handleRedirect Exit
Redirecting to a login formhttp://localhost:9080/SSOIDP/login.jsp
[3/1/22 19:02:25:306 UTC] 000000ad WebAuthentica < authenticate 3 Exit
AuthenticationResult.REDIRECT
The ffdc file indicated in the error will contain more details.
Please ensure that the steps 10 and 11 of
https://www.ibm.com/docs/en/was-nd/9.0.5?topic=users-configuring-openid-connect-relying-party were performed. Since the realm from the id_token is KISSRegistry, please ensure this is the realm used in those steps.
Regards,
Teddy
------------------------------
Teddy Torres
------------------------------
Original Message:
Sent: Tue March 01, 2022 02:15 PM
From: Thomas Mayr
Subject: More than one basic registry in WebSphere Liberty
Hello Miguel,
here the requested log files and the server.xml. The scenario is as follows:
- I navigate to the welcome page: http://localhost:9080/SSOIDP/index.jsp
- I navigate to a protected page: http://localhost:9080/SSOIDP/restricted/idpRestrictedPage.jsp
- I am redirected to the Liberty OP login page
- I enter username Andrea and Password
- I am redirected to the login page of the RP application: http://localhost:9080/SSOIDP/login.jsp
Step 5 is wrong! I should be redirected to the restricted page selected in step 2.
Kind regards
Thomas
------------------------------
Thomas Mayr
Original Message:
Sent: Tue March 01, 2022 12:16 PM
From: MIGUEL ANGEL CAMACHO CABRERA
Subject: More than one basic registry in WebSphere Liberty
Can you please upload the traces with trace string
*=info:com.ibm.ws.security.oidc.*=all:com.ibm.ws.security.openidconnect.*=all:com.ibm.ws.security.openid20.*=all:com.ibm.ws.security.web.*=all:com.ibm.ws.security.*=all:com.ibm.ws.webcontainer.security.*=all
from server start up? Upload them when adding the second basicregistry and when you have just one for comparison if possible.
------------------------------
MIGUEL ANGEL CAMACHO CABRERA
Original Message:
Sent: Tue March 01, 2022 10:59 AM
From: Thomas Mayr
Subject: More than one basic registry in WebSphere Liberty
Hi Miguel,
my OpenID Provider and RP applications are working well when I remove the second base registry from the server.xml!
Kind regards
Thomas
------------------------------
Thomas Mayr
Original Message:
Sent: Tue March 01, 2022 10:09 AM
From: MIGUEL ANGEL CAMACHO CABRERA
Subject: More than one basic registry in WebSphere Liberty
It seems you are trying to configure and OIDC provider and client and it seems it is not correctly configured.
Check the following link too:
Getting started: Configuring an OpenID Connect Provider and Client in Liberty
https://www.ibm.com/docs/en/was-liberty/base?topic=uoc-getting-started-configuring-openid-connect-provider-client-in-liberty
------------------------------
MIGUEL ANGEL CAMACHO CABRERA
Original Message:
Sent: Tue March 01, 2022 06:39 AM
From: Thomas Mayr
Subject: More than one basic registry in WebSphere Liberty
Hello,
isn't is possible to define more than one basicRegistry in the server.xml of a WebSphere Liberty? I tried to define two basicRegistry entries with a differnt id and realmName for two different RP applications, but when I login, I first get the login form of Liberty OP, but then I'm not redirected to the restricted page of the RP application but to the login form of the RP application.
The registry definitions looks like this:
<basicRegistry id="sampleApps" realm="SampleApps">
<user name="Jackson" password="Password"/>
<user name="Andrea" password="Password"/>
<group name="TestUsers">
<member name="Andrea" />
</group>
<basicRegistry>
Am I missing something?
Thomas
------------------------------
Thomas Mayr
------------------------------