OWIN中OAuthAuthorizationServer的自定义响应

时间:2016-10-31 08:01:39

标签: c# asp.net oauth-2.0 owin katana

我需要在OAuthAuthorizationServer

中为令牌生成生成自定义响应

默认的resposne就像这样

{
  "access_token": "***access_token***",
  "token_type": "bearer",
  "expires_in": 119,
  ".issued": "Mon, 31 Oct 2016 11:20:50 GMT",
  ".expires": "Mon, 31 Oct 2016 11:22:50 GMT"
}

如何生成此输出而不是默认输出?

{
  "message": "Token Granted",
  "data": 
    {
      "Token": "***access_token***"
    },
  "messageCode": 200
}

0 个答案:

没有答案