Identityserver4: 'IIdentityServerBuilder' does not contain a definition for 'AddAspNetIdentity'

Created on 7 Mar 2017  路  6Comments  路  Source: IdentityServer/IdentityServer4

When adding this configuration to Startup.cs ConfigureServices method:

services.AddIdentityServer()
.AddTemporarySigningCredential()
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApiResources())
.AddInMemoryClients(Config.GetClients())
.AddAspNetIdentity();

the last bit isn't getting resolved by the compiler (.AddAspNetIdentity();).

Most helpful comment

You have to add a reference to IdentityServer4.AspNetIdentity:

Install-Package IdentityServer4.AspNetIdentity

All 6 comments

You have to add a reference to IdentityServer4.AspNetIdentity:

Install-Package IdentityServer4.AspNetIdentity

Installing IdentityServer4.AspNetIdentity worked for me

Installing IdentityServer4.AspNetIdentity worked for me +1

Installing IdentityServer4.EntityFramework helps me

Installing IdentityServer4.EntityFramework Worked for me

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eshorgan picture eshorgan  路  3Comments

leastprivilege picture leastprivilege  路  3Comments

chrisrestall picture chrisrestall  路  3Comments

not-good-with-usernames picture not-good-with-usernames  路  3Comments

garymacpherson picture garymacpherson  路  3Comments