Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-13315

CLONE - Share SSOAuthenticationFilter and non-ascii username strings

    Details

      Description

      I'm trying to make Alfresco 4.2.c work with a custom external authentication.
      This custom authenticator is based on the SSOAuthenticationFilter that comes out-of-the-box with Share.
      At this point, after doing some processing to my custom header (which is handled by an external system) I set this two session attributes when a valid request comes in

      session.setAttribute(UserFactory.SESSION_ATTRIBUTE_KEY_USER_ID, userName);
      session.setAttribute(UserFactory.SESSION_ATTRIBUTE_EXTERNAL_AUTH, Boolean.TRUE);

      So everyone else in the authentication chain is aware that the session is valid, that's fine, works as spected for my user registry except for those wiht non-ascii characters in the username

      for example

      iñaki

      is created as

      i?aki

      This are the simple steps i made

      • Change Share's web.xml to point to me custom SSOAuthenticationFilter class
      • Configuration in alfresco-global.properties to enable external auth and custom proxy header
      • Set SSO Endpoint configuration in share-config-custom.xml (header based)
      • Create the custom filter, where the session validation is done.

      So what is Alfresco repo specting in that session attibute to create "iñaki" username?

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  mikel.asla Mikel Asla (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 week, 1 day, 3 hours
                    1w 1d 3h

                      Structure Helper Panel