Makes work custom authentication provider