correct authentication sample
Set Permissions Registry as Service in ServiceManager
Replace Using PermissionsPluginManager instead of PermissionsRegistry