IdentityServer / IdentityServer3.AspNetIdentity

ASP.NET Identity support for Thinktecture IdentityServer3
Apache License 2.0
64 stars 51 forks source link

Error while configuring AspNetIdentity with IdentityServer3: method does not exist. #31

Closed adrianorc closed 9 years ago

adrianorc commented 9 years ago

Hi,

I'm trying to configure AspNetIdentity in my IdentityServer as following:


public class Factory
{
    public static IdentityServerServiceFactory Configure(string connString)
    {
        //-- using identity server with entity framework
        var efConfig = new EntityFrameworkServiceOptions
        {
            ConnectionString = connString,
        };

        var factory = new IdentityServerServiceFactory();
        factory.RegisterOperationalServices(efConfig);

        //-- try to configure AspNetIdentityUserService....
        factory.ConfigureUserService("AspId");   // <-  here is the error: The method ConfigureUserService does not exist.

        return factory;
    }

}

But I'm getting an error message that says: 'Thinktecture.IdentityServer.Core.Configuration.IdentityServerServiceFactory' does not contain a definition for 'ConfigureUserService'.

I have already installed the package: https://www.nuget.org/packages/Thinktecture.IdentityServer3.AspNetIdentity/

brockallen commented 9 years ago

That's an extension method from the hosting sample.

adrianorc commented 9 years ago

ohhh, allright. Now I found it. Thank you verry much!