Populate Session on BasicAuthentication

Hi, is it possible to get the Session populated with roles/permissions when using BasicAuthentication? If I use JWT then these values are in the GetSession, but if I use the Basic Authentication, then f.e. Roles is empty.

Ok, it seems that the UseDistinctRoleTables is causing the fact that roles are not populated.