The used LDAP package vesse/node-ldapauth-fork supports group search capabilities. Once an authentication was successful an array of groups will be added to the user record.
Sample output with groups:
Currently only the first element of the _groups array is used by loopback.
Since _groups is a hardcoded reference in node-ldapauth-fork we can use the same hardcoded reference in our code.
Checklist
[x] New tests added or existing tests modified to cover all changes
Description
The used LDAP package
vesse/node-ldapauth-fork
supports group search capabilities. Once an authentication was successful an array of groups will be added to the user record. Sample output with groups:Currently only the first element of the
_groups
array is used by loopback. Since_groups
is a hardcoded reference innode-ldapauth-fork
we can use the same hardcoded reference in our code.Checklist