Search code examples
asp.netauthenticationasp.net-coreidentityserver4

Identity Server 4 Authentication


I'm following along with examples for how to implement Identity Server 4

I'm trying to add in memory users in

services.AddIdentityServer()
  .AddInMemoryClients(new List<Client>())
  .AddInMemoryIdentityResources(new List<IdentityResource>())
  .AddInMemoryApiResources(new List<ApiResource>())
  .AddInMemoryUsers(new List<InMemoryUser>())
  .AddTemporarySigningCredential();

I'm receiving an error that there is no definition for.AddInMemoryUsers(new List<InMemoryUser>())

Can anyone point me where this dll is or if this has been remove?


Solution

  • It's renamed to AddTestUsers, IdentityServer4 was updated since that blog.

    https://github.com/IdentityServer/IdentityServer4.Samples/blob/release/Quickstarts/3_ImplicitFlowAuthentication/src/QuickstartIdentityServer/Startup.cs