开发者

OpenId with Desktop Application?

开发者 https://www.devze.com 2022-12-23 10:46 出处:网络
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 open

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 i开发者_如何学Pythont again ?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消