IdentityServer / IdentityServer3.EntityFramework

EntityFramework persistence layer for IdentityServer3
Apache License 2.0
68 stars 97 forks source link

Not able to generate the token with this sample #92

Closed UmeshSgh closed 8 years ago

UmeshSgh commented 8 years ago

Hi,

I have downloaded this sample and it is running fine. when try to generate the token to understand how all information are going to persist with db. Unfortunately, always getting "grant_invalid".

Here is the code: var client = new TokenClient( "https://localhost:44333/core/connect/token", "roclient", "secret");

        return client.RequestResourceOwnerPasswordAsync("bob", "bob", "read write").Result;

Could you please correct me or suggest how I should invoke. I have configured one Identityserver using IUserservice and using similar syntax to get the access_token.

brockallen commented 8 years ago

I can't tell just from this. Check the logs in IdSvr.