Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3168

JAAS login module to convert existing Principal to an Artemis UserPrincipal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.17.0
    • 2.28.0
    • JAAS
    • None

    Description

      Artemis verifies that an authenticated subject always has an Artemis UserPrincipal which makes sense. All of the existing login modules produce UserPrincipals. However login modules are plugable and varied. Some allow some control of the role principal classes that they support but are less likely to allow the Principal classes to be replaced.
      For the hawtio console for example, the configurable RolePrincipal classes allow both karaf and Artemis to co-exist and share role names. They can also agree on the UserPrincipal class. However in chaining login modules where there is not agreement on the UserPrincipal, it is useful to be able to convert to the Artemis expected format at the end of the login process.

      A simple PrincipalConversionLoginModule configured with the list of class names to match against, would suffice here. A known validated XPrincipal(Bob) can then appear in Artemis as UserPrincipal(Bob) without prior agreement, making any login module a candidate for inclusion in the Artemis login.config.

      Attachments

        Issue Links

          Activity

            People

              gtully Gary Tully
              gtully Gary Tully
              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 - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m