I am getting groups from OP but unable to create session on RP with same groups. Groups are Access Manager groups but somehow it is not working.
Current configs:
ISVA : 10.0.2.0
webseal 1 (OP) External user logged in with AM Groups
Webseal 2 (RP) triggers OIDC flow with opened,groups via https://webseal2/mga/sps/oidc/rp/fed/kickoff/webseal1
I am able to get session on RP but do not see any group membership
Partner on federation fed is configured with : Identity Mapping rule : OIDCRP
//OPDC_RP.js file looks like following
stsuu.setPrincipalName(sub.toUpperCase());
var finalAttrs = [];
for (var i = 0; i < token_attribute_names.length; i++) {
var attr = stsuu.getAttributeContainer().getAttributeByName(token_attribute_names[i]);
if (attr != null) {
attr.setType("urn:ibm:names:ITFIM:oauth:response:attribute");
attr.setName(tokenToSTSCredMappingAttribute(token_attribute_names[i]))
finalAttrs.push(attr);
}
}
stsuu.clearAttributeList();
var authLevelAttr = new com.tivoli.am.fim.trustserver.sts.uuser.Attribute("AUTHENTICATION_LEVEL", "urn:ibm:names:ITFIM:oauth:response:attribute", "2");
finalAttrs.push(authLevelAttr);
for (var i = 0; i < finalAttrs.length; i++) {
stsuu.addAttribute(finalAttrs[i]);
}
var grpsAttr = new com.tivoli.am.fim.trustserver.sts.uuser.Attribute("am-eai-ext-user-groups", "urn:ibm:names:ITFIM:oauth:response:attribute", "min_oversikt");
var grp1Attr = new com.tivoli.am.fim.trustserver.sts.uuser.Attribute("group", "urn:ibm:names:ITFIM:oauth:response:attribute", "min_oversikt");
var grp2Attr = new com.tivoli.am.fim.trustserver.sts.uuser.Attribute("groups", "urn:ibm:names:ITFIM:oauth:response:attribute", "min_oversikt");
var grp3Attr = new com.tivoli.am.fim.trustserver.sts.uuser.Attribute("AZN_CRED_GROUPS", "urn:ibm:names:ITFIM:oauth:response:attribute", "min_oversikt");
var extUserAttr = new com.tivoli.am.fim.trustserver.sts.uuser.Attribute("ext-username", "urn:ibm:names:ITFIM:oauth:response:attribute", sub);
stsuu.addContextAttribute(grpsAttr);
stsuu.addContextAttribute(grp1Attr);
stsuu.addContextAttribute(grp2Attr);
stsuu.addContextAttribute(grp3Attr);
stsuu.addContextAttribute(extUserAttr);
var token_attribute_names = ["name", "given_name","family_name","email","phone","locale", "acr", "attest", "amr", "amr", "orig", "access_token", "iss"];
var token_to_sts_attribute_mappings = {
name: "tagvalue_eai_common_name",
given_name: "tagvalue_credattrs_firstname",
family_name: "tagvalue_credattrs_lastname",
email: "tagvalue_credattrs_email",
phone: "tagvalue_credattrs_mobile",
channel: "tagvalue_channel",
locale: "tagvalue_locale",
acr: "AZN_CRED_AUTH_METHOD",
attest: "AUTHENTICATION_LEVEL",
amr: "AZN_CRED_AUTHNMECH_INFO",
dest: "AZN_CRED_PRINCIPAL_DOMAIN",
orig: "tagvalue_auth_mechanism"
}
I have tried to add group one by one in context attribute list as well as attributelist but none of them is working.
Is it possible to add groups while doings sso between two webseal reverse proxies with oidc federation.
------------------------------
Piyush Agrawal
https://www.linkedin.com/in/piyush-norway/Gjensidige Norway
------------------------------