Class LdapController


  • @RestController
    @RequestMapping("/api/ldap")
    @ConditionalOnExpression("${nae.ldap.enabled:false}")
    public class LdapController
    extends java.lang.Object
    • Constructor Detail

      • LdapController

        public LdapController()
    • Method Detail

      • getAllLdapGroups

        @PreAuthorize("@authorizationService.hasAuthority(\'ADMIN\')")
        @PostMapping(value="/search",
                     produces="application/hal+json")
        public LdapGroupsResource getAllLdapGroups​(@RequestBody
                                                   LdapGroupSearchBody body,
                                                   org.springframework.security.core.Authentication auth)
      • assignRolesToLdapGroup

        @PreAuthorize("@authorizationService.hasAuthority(\'ADMIN\')")
        @PostMapping(value="/role/assign",
                     consumes="application/json",
                     produces="application/hal+json")
        public MessageResource assignRolesToLdapGroup​(@RequestBody
                                                      LdapGroupRoleAssignRequestBody requestBody,
                                                      org.springframework.security.core.Authentication auth)