How to add external login in .net web api 2?

早过忘川 提交于 2019-12-10 16:47:28

问题


I'm trying to add external login with template from MVC5, Web API2 with method

Task<IHttpActionResult> AddExternalLogin(AddExternalLoginDTO model)

The method need only one parameter ExternalAccessToken - token from FB, Google, ...

But ticket for some user data is still null

AuthenticationTicket ticket = AccessTokenFormat.Unprotect(model.ExternalAccessToken);

Where is the problem?

来源:https://stackoverflow.com/questions/24782969/how-to-add-external-login-in-net-web-api-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!