Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-171

Add a hasRole method to the Identity interface

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Minor Minor
    • PLINK_2.5.0.Beta6
    • PLINK_2.5.0.beta3
    • BASE
    • None

      In order to check roles for authenticated users we need to always use the IdentityManager(PicketLink IDM).

      I think it is a lot easier for users to have a simple hasRole(String roleName) method on the Identity interface to check for that.

      Also, this is a very common and helpful method for most use cases, including those that need to check for users roles from a JSF page using EL, for example.

      Not sure if for this last case, we should recommend to access the IdentityManager directly from those pages or even force users to create a bean to encapsulate the logic.

            sbryzak@redhat.com Shane Bryzak
            psilva@redhat.com Pedro Igor Craveiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: