Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-410

Add the ability to check if the caller has RuntimePermission("setRunAsPermission") when creating a RunAs identity

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Beta4
    • None
    • API / SPI
    • None

      Currently, there's a difference between Elytron and PicketBox in the behaviour of a run-as-principal operation. In particular, Elytron's SecurityIdentity#createRunAsIdentity() always attempts to authorize a run-as-principal operation, which means that a user needs to be granted the RunAsPrincipalPermission via a custom PermissionMapper in order to run as the given principal (even to run as the anonymous principal). However, PicketBox only performs an authorization check in this case if the security manager is enabled and the check itself seems to be a bit different - PicketBox just checks the caller has "setRunAsPermission", which is a RuntimePermission that doesn't depend on the given principal.

              fjuma1@redhat.com Farah Juma
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: