如何在响应中使用Web api中的Oauth发送之前捕获生成的Access令牌 [英] How to capture the generated Access token before it is sent in the response Using Oauth in Web api

查看:88
本文介绍了如何在响应中使用Web api中的Oauth发送之前捕获生成的Access令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Frieds,



我使用Oathu 2创建了简单的web api基于令牌的身份验证。这是有没有办法捕获生成的Access令牌之前发送回应给客户?我想将令牌存储在本地数据库中。





先谢谢,

Mohan G

Hi Frieds,

I have created simple web api Token Based Authentication using Oathu 2. In this is there any way to capture the generated Access token before it is sent in the response to the client? I want to store the token in local DataBase.


Thanks in Advance,
Mohan G

推荐答案

也许对某人有用,我在这里找到答案:

如果您参考以下链接,您将获得解决方案.. 。



http://stackoverflow.com/questions/26071743/how-do-you-get-the-oauth2-accesstoken-从owin-api开始创建它之后[ ^ ]
Maybe can be useful to somebody, I found the answer here:
You will get the Solution if you refer the the follwing links...

http://stackoverflow.com/questions/26071743/how-do-you-get-the-oauth2-accesstoken-after-its-creation-from-the-owin-api[^]


这篇关于如何在响应中使用Web api中的Oauth发送之前捕获生成的Access令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆