問題描述
如何在 openID 站點中使用 Microsoft 帳戶? (How to use Microsoft Account in an openID site?)
I am planning to build a site with openID authentication , most of my target users will register in the site using Microsoft accounts (hotmail/live/windowslive).
Is there anyway to use Microsoft accounts as openID?
參考解法
方法 1:
As far as i know they still only use their "Passport"/"Windows Live ID" system, so no. They have announced however that they are going to support OpenID at one point or another. Take a look at the link below there is even a Tech Preview to test out their implementation maybe that can be used somehow:
Microsoft & OpenID
方法 2:
Until Microsoft supports OpenID my current plan is to hide OpenID and Windows Live ID behind a "Third Party Auth" interface. Using the Chain of Responsibility pattern I'll choose the correct provider and the rest of the app won't know the difference (except the UI where I'll have friendly buttons, much like the ones for Gmail and Yahoo accounts).
方法 3:
As of Feb 2016, OpenID Connect is supported by Microsoft Accounts (aka Windows Live ID, aka Microsoft Passport), without needing an Azure account.
Please read this: https://blogs.technet.microsoft.com/enterprisemobility/2016/02/23/for-developers-the-first-use-cases-of-the-converged-microsoft-account-and-azure-active-directory-programming-model-are-now-ga/
(by Khaled Musaied、Wade、Talljoe、saille)