Execute the rolesQuery against the dsJndiName to obtain the roles for the authenticated user.
public static getRoleSets ( string $username, string $lookupName, string $rolesQuery, AppserverIo\Psr\Security\Auth\Spi\LoginModuleInterface $aslm ) : array | ||
$username | string | The username to load the roles for |
$lookupName | string | The lookup name for the datasource |
$rolesQuery | string | The query to load the roles |
$aslm | AppserverIo\Psr\Security\Auth\Spi\LoginModuleInterface | The login module to add the roles to |
Результат | array | An array of groups containing the sets of roles |