OpenId with Desktop Application?

早过忘川 提交于 2019-12-31 01:49:13

问题


We're using an API from a provider; in their next version, they would provide an OpenId server but mostly the users are using their desktop application. An other website we're building would be opened from this application and we supposedly would connect with openid to access the resources stored in this provider.

Still I don't understand how this would work if user is already authenticated with the desktop, will they have to authenticate an other time ? What happens if they close their browser and reopen it, will they have to to do it again ?


回答1:


OpenID and desktop apps are totally completely and altogether incompatible. You cannot secure a desktop app using OpenID.

Look at OAuth. It can work with or without OpenID, but OAuth is all about authorizing apps including desktop apps to access network resources.




回答2:


I think the answer is "it depends." For the close-and-reopened browser question, it depends on whether your sites use session cookies or persistent cookies to authenticate requests.

But as for the authenticate-with-desktop-client-and-then-open-a-browser, you'd have to ask the provider for more details. I can imagine ways to do it that would have either outcome.



来源:https://stackoverflow.com/questions/2464356/openid-with-desktop-application

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