Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-887

RFE: easier access to Subject in attribute scripts

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2, 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: Attribute Resolver
    • Labels:
      None

      Description

      Some users wanted to access the Subject in an attribute script.
      Currently, in idp v3.2, this can be done with:

      profileContext.getSubcontext("net.shibboleth.idp.authn.context.SubjectContext").getSubjects().get(0)

      Scott sugested that it can be made simpler. His comments in the users list:

      (...) file a RFE so we get something cleaner added to the scripting contexts. I think if we'd realized so many people wanted to dig into the subject we would have exposed something simpler. No reason we can't expose the subject alongside the principal name.

        Attachments

          Activity

            People

            Assignee:
            rdw@iay.org.uk Rod Widdowson
            Reporter:
            emiliopenna@idp.protectnetwork.org emiliopenna@idp.protectnetwork.org
            Watchers:
            4 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 - 20 minutes
                20m