added inMemoryAuthentication