Can non-web applications use OpenID?

前端 未结 4 833
小蘑菇
小蘑菇 2020-12-20 20:30

How can I make my desktop application into an OpenID relying party?

4条回答
  •  天涯浪人
    2020-12-20 21:22

    Don't do it.

    Even an attempt to do so shows a fundamental lack of understanding in the security model that OpenID offers. You have to ask yourself what the password that you would otherwise use for your desktop app is protecting. Is it protecting assets on the local machine itself? If so, OpenID is useless because it would be a simple matter to spoof the network such that I could hack my way into the desktop app without owning the OpenID. You're wide open to user identify spoofing. Are you trying to protect network assets? OpenID fails again, since it doesn't authorize your desktop app to access those network assets, suggesting that some other authentication is going on behind OpenID so once again you're not adding any value.

    OAuth is the protocol suited to allow your desktop app to access and protect network resources. If you're protecting local assets on the desktop computer, local encryption is the only way to go.

提交回复
热议问题