Spring Security
  1. Spring Security
  2. SEC-940

Create JSP tag for retrieving authorization objects in switch user chain

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.3
    • Fix Version/s: 3.0.0 M1
    • Component/s: Core, Taglibs
    • Labels:
      None

      Description

      It would be great to have a taglib that exposes the administrator authorization object when the switch user functionality is in use. We use this to determine who the logged in person is when they are 'simulating' someone else. The difficulty from an EL perspective is that the grantedauthorities must be enumerated while looking for the SwitchUserGrantedAuthorityImpl object (which contains the source Authorization).

      A foreach statement in EL can get this done but it is ugly.

        Activity

        Hide
        Luke Taylor added a comment -

        Feel free to submit a patch for review, but it doesn't sound like a requirement many users will have.

        Show
        Luke Taylor added a comment - Feel free to submit a patch for review, but it doesn't sound like a requirement many users will have.
        Hide
        Jon Osborn added a comment -

        Ok, will do. The code is really pretty simple and shouldn't introduce a maintenance headache.

        Show
        Jon Osborn added a comment - Ok, will do. The code is really pretty simple and shouldn't introduce a maintenance headache.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Jon Osborn
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: