mafly / OAuth2.0

OAuth2.0 Demo

Home Page:http://www.cnblogs.com/mafly/p/OAuth2_BasicConcept.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

老铁,现在这个不管用了,已经不行了

HandsomeBoy01 opened this issue · comments

经过测试,每次都是 "error": "invalid_grant" 根本进入不到 GrantClientCredentials 这个方法中,其中 //TODO:读库,验证
//if (clientId != "22" && clientSecret != "11")
//{
// context.SetError("invalid_client", "密码不对,不要再来了!!");
// return;
//}

我都是注释掉的。
大神 你再看看是哪里的问题 ,我用的vs2017 .net 4.5.1的版本

我的错,我找到原因了我的grant_type 传错了,,抱歉