From 88c6bc8b7d744e7941215df67b4289fddf8c0c1c Mon Sep 17 00:00:00 2001 From: onlinefw Date: Mon, 2 Oct 2023 23:51:29 -0400 Subject: [PATCH] support getting caller and group information from multiple tokens- id token, access token, user info address review comments social - OidcLoginConfigImpl update Fix the groupId / aud retrieval issue configuration update configuration update and add implementation to OidcLoginConfigImpl Update to ignore the exception from finding userinfo and continue with the other 2 tokens Update to use space instead of "," to fix the configuration issue --- .../resources/OSGI-INF/metatype/metatype.xml | 4 + .../client/internal/OidcClientConfigImpl.java | 32 ++ .../bnd.bnd | 6 +- .../client/jose4j/util/Jose4jUtil.java | 382 ++++++++++++++++-- .../clients/common/AttributeToSubject.java | 1 - .../common/AuthorizationCodeHandler.java | 11 +- .../clients/common/Constants.java | 3 +- .../clients/common/ConvergedClientConfig.java | 1 + .../common/OIDCClientAuthenticatorUtil.java | 34 +- .../clients/common/UserInfoHelper.java | 27 +- .../social/internal/OidcLoginConfigImpl.java | 30 +- 11 files changed, 486 insertions(+), 45 deletions(-) diff --git a/dev/com.ibm.ws.security.openidconnect.client/resources/OSGI-INF/metatype/metatype.xml b/dev/com.ibm.ws.security.openidconnect.client/resources/OSGI-INF/metatype/metatype.xml index c6823913c02a..69132115aa34 100644 --- a/dev/com.ibm.ws.security.openidconnect.client/resources/OSGI-INF/metatype/metatype.xml +++ b/dev/com.ibm.ws.security.openidconnect.client/resources/OSGI-INF/metatype/metatype.xml @@ -163,6 +163,10 @@