Class KeyCloakElytronIdentityHelper

  • All Implemented Interfaces:
    org.uberfire.backend.server.security.elytron.ElytronIdentityHelper

    @Alternative
    public class KeyCloakElytronIdentityHelper
    extends Object
    implements org.uberfire.backend.server.security.elytron.ElytronIdentityHelper
    Implementation of ElytronIdentityHelper for Keycloak integration. It tries to authenticate the given credentials to Keycloak by using the DirectAccessGrantsLoginModule. Requires a keycloak-config-file and a SystemProperty "org.uberfire.ext.security.keycloak.keycloak-config-file" specifying the path of that file.
    • Constructor Detail

      • KeyCloakElytronIdentityHelper

        public KeyCloakElytronIdentityHelper()
    • Method Detail

      • getIdentity

        public org.jboss.errai.security.shared.api.identity.User getIdentity​(String userName,
                                                                             String password)
        Specified by:
        getIdentity in interface org.uberfire.backend.server.security.elytron.ElytronIdentityHelper