Revoke access from C#

I have my users already authenticated to my LinkedIn app but I also want to give them the possibility to de-authenticate from my app any given time.

I think I'm just missing the http delete url to do it but i'm not sure.

Thanks


The OAuth protocol is specifically designed to not allow what you are attempting to accomplish. The OAuth security model introduces a third concept to the traditional client-server authentication model, and this is called the resource owner. The resource owner (your end-users) is the only party that can grant and revoke access. Perhaps you could provide a message to your users that they should visit LinkedIn to revoke access to assist them with that process (I suppose you could also redirect them to LinkedIn's website). Ultimately though, if I were the end-user, I'd want to visit LinkedIn myself to revoke access.


在开发者论坛上查看这个条目。


I'm no C# programmer, but what I suggest you do is give them a revoke access button. When that button is clicked, your software would delete the access key which was stored there. If the access token is no longer stored anywhere, they will be unable to access your application, which would mean the same as deauthentication.

I hope this helps.

链接地址: http://www.djcxy.com/p/10898.html

上一篇: 未找到类org.datanucleus.api.jdo.PersistenceManagerFactoryClass

下一篇: 从C#中撤销访问