Вопрос

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.

Другие советы

Check this entry on the developer forum.

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top