IdentityServer / IdentityServer3.Admin.EntityFramework

Apache License 2.0
12 stars 30 forks source link

Client and Scope creation failed due to missing mappings #14

Closed BrightSoul closed 8 years ago

BrightSoul commented 8 years ago

Added these two mappings to the MapperConfiguration that's in the IdentityAdminCoreManager constructor: cfg.CreateMap<TClient, Client>(); cfg.CreateMap<TScope, Scope>();

Without them I got an error creating clients and scopes since the required properties Client.ClientId, Client.ClientName and Scope.Name weren't copied over.

Also fixed a typo.

iBoonz commented 8 years ago

Hmm, seems this is already changed, sorry, I did not see the pull request. Thanks for the help!