Reputation: 5053
I'm writing a Word add-in. The add-in will be a paid add-in that can be purchased by an organization (Office 365 tenant) or an individual.
Once purchased a user will have to authenticate. To ensure the user is licences to use the add-in I will validate either by
I don't expect Microsoft to provide/store any licensing data. The licensing data (terms and ids) will be kept in my own database.
Until SSO is out of Preview, I'm planning on using the Authenticator
from office-js-helpers
, to get the information of the user that has signed in to my add-in.
In the helper docs they list the following possible OAuth strategies:
var authenticator = new OfficeHelpers.Authenticator();
// register Microsoft (Azure AD 2.0 Converged auth) endpoint using
authenticator.endpoints.registerMicrosoftAuth('client id here');
// register Azure AD 1.0 endpoint using
authenticator.endpoints.registerAzureADAuth('client id here', 'tenant here');
// register Google endpoint using
authenticator.endpoints.registerGoogleAuth('client id here');
// register Facebook endpoint using
authenticator.endpoints.registerFacebookAuth('client id here');
// register any 3rd-Party OAuth Implicit Provider using
authenticator.endpoints.add('Name of provider', { /* Endpoint Configuration */ })
I understand that once a user is authenticated I will receive an authentication token which I can use to query the Graph API for the user's information.
My question is which OAuth strategy will respond with a token to the Graph API that will return information for:
?
Is there any difference between the
Microsoft (Azure AD 2.0 Converged auth) endpoint
and the
Azure AD 1.0 endpoint
Upvotes: 1
Views: 338
Reputation: 33094
Yes, there are quite a few differences. At a high-level, these are:
v1 endpoint:
v2 endpoint:
Note: This is a super-high-level-skip-a-lot-of-detail list but it covers most of the core differences.
Upvotes: 3