1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[JBoss] How to ensure wildfly elytron returns all roles in upper-case for ldap auth?

Discussão em 'StackOverflow' iniciado por Stack, Outubro 3, 2024 às 16:02.

  1. Stack

    Stack Membro Participativo

    Working to get our wildfly deployment to authenticate against different ldap providers. When we connect to Active Directory, we can see the roles are returned in all caps (ie ADMIN_ROLE) and that aligns to our annotations we provide such as:

    import jakarta.annotation.security.RolesAllowed
    @RolesAllowed("ADMIN_ROLE")


    When we change the backend from active directory to FreeIPA, the roles are returned in lower case and thus does not align to our RolesAllowed annotation.

    Is there an option to ensure that our roles/groups that we pull in and are provided to the securitycontext are forced to be capital? Reading through the docs I do not see a flag to force this or an easy option to handle the comparison in a non case-sensitive way for roles. Thanks.

    Continue reading...

Compartilhe esta Página