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

null Identity.account.loginName when using SAML2LoginModule?

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: PLINK_2.7.0.Final
    • Fix Version/s: None
    • Component/s: SAML
    • Labels:
      None

      Description

      I've been using the following quickstarts, modified:

      • org.picketlink.quickstarts.picketlink-federation-saml-idp-basic
      • org.picketlink.quickstarts.picketlink-authentication-form-with-jsf

      The goal is to be able to @Inject an Identity and call getAccount(), as well as stuff like @Observes LoggedInEvent when using the SAML2LoginModule on Wildfly.

      It doesn't seem to work. Identity.getAccount() always returns null, identity.isLoggedIn() is false, and @Observes LoggedInEvent is not triggered.

      Are the two systems, IDM and SAML2LoginModule, not "integrated", for lack of better word?

      Sample JSF snippet

          <p>identity.account.loginName: #{identity.account.loginName}, this resource is protected. If you reach this page is because you're authenticated.</p>
          <p>request.getUserPrincipal().getName(): #{request.getUserPrincipal().getName()} </p>
          <p>identity.isLoggedIn(): #{identity.isLoggedIn()} </p>
      

      results in:

      identity.account.loginName: , this resource is protected. If you reach this page is because you're authenticated.

      request.getUserPrincipal().getName(): tomcat

      identity.isLoggedIn(): false

      So request.getUserPrincipal().getName() is correct, but identity.account.loginName is null.

      Is there a workaround, or some other way to "capture" SAML2 events and integrate it with IDM?

      I can post all this on GitHub if it's helpful

      Thanks!

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pcraveiro Pedro Igor Silva
                Reporter:
                the_alchemist The Alchemist
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: