Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-6843

Request to have scope mapping displayed on admin console per agent basis

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.0.0, 12.0.1
    • Fix Version/s: None
    • Component/s: oauth2
    • Support Ticket IDs:

      Description

      Currently, scope attribute mappings(ie. email=mail) are hard coded within OpenAMScopeValidator class. This is a sample scope validator class which the source code is provided to users for customization, but it would be nice to have these mappings to be configurable via admin console like users can with SAML. In each SAML configuration you can map a SAML attribute to a user attribute. This functionality would account for the potential for multiple email addresses and other attributes that don't always follow the suggested LDAPv3 attribute names.

      public class OpenAMScopeValidator implements ScopeValidator {
      
          private static final String MULTI_ATTRIBUTE_SEPARATOR = ",";
          private static Map<String, Object> scopeToUserUserProfileAttributes;
          private static final String DEFAULT_TIMESTAMP = "0";
          private static final DateFormat TIMESTAMP_DATE_FORMAT = new SimpleDateFormat("yyyyMMddhhmmss");
          private final OAuth2ProviderSettingsFactory providerSettingsFactory;
      
          static {
              scopeToUserUserProfileAttributes = new HashMap<String, Object>();
              scopeToUserUserProfileAttributes.put("email","mail");
              scopeToUserUserProfileAttributes.put("address", "postaladdress");
              scopeToUserUserProfileAttributes.put("phone", "telephonenumber");
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sachiko Sachiko Wallace
            • Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: