Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2379

Principal injection should support KeycloakPrincipal

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • Unscheduled
    • None
    • None
    • None

      In EE, it is possible to inject a Principal object.

      I use Keycloak 3.0 on Wildfly 10.1. While the Principal object is injectable, its not an instance of KeycloakPrincipal, so it cannot be casted. Since Weld provides this bean, there should be someway to indicate that it should be a KeycloakPrincipal instead of the default Principal. I can see the right object gets injected, since the name is the same.

              Unassigned Unassigned
              meetoblivion_jira John Ament (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: