【发布时间】:2015-05-12 05:37:52
【问题描述】:
当SimpleAuthorizationServerProvider 的 GrantResourceOwnerCredentials 方法中的身份验证失败时,它会返回;
context.SetError("invalid_grant", "The user name or password is incorrect.");
但是,我需要使用 TEntity 类返回我自己的 JSON 响应,我们将不胜感激。
【问题讨论】:
-
答案请看以下内容:[带答案的相关帖子][1] [1]:stackoverflow.com/questions/25032513/…
标签: c# asp.net-web-api2 owin bearer-token