Create an Authentication Provider for SharePoint Online or OneDrivefor Business Using Office 365 (Alternate Method)
- In Setup, enter Auth. Providers in the QuickFind box, then select Auth. Providers.
- Click Edit next to the authentication provider you created previously.
- Change the following values:Consumer Key — Enter the Client ID you copied to a text file.Consumer Secret — Enter the Client Secret you copied to a text file.Authorize Endpoint URL — Enter the URL of the OAuthAuthorize.aspx page in Office 365. The URL format is as follows.SharePoint Onlinehttps://your companyname.sharepoint.com/site collection path/_layouts/15/OauthAuthorize.aspxOneDrive for Businesshttps://your company name-my.sharepoint.com/_layouts/15/OauthAuthorize.aspxToken Endpoint URL — Enter a URL in the following format.SharePoint Onlinehttps://accounts.accesscontrol.windows.net/your companyname.onmicrosoft.com/tokens/OAuth/2?resource=00000003-0000-0ff1-ce00-000000000000/yourcompany namesharepoint.com@your company name.onmicrosoft.comOneDrive for Businesshttps://accounts.accesscontrol.windows.net/your companyname.onmicrosoft.com/tokens/OAuth/2?resource=00000003-0000-0ff1-ce00-000000000000/yourcompany name-my.sharepoint.com@your companyname.onmicrosoft.com
- Consumer Key — Enter the Client ID you copied to a text file.
- Consumer Secret — Enter the Client Secret you copied to a text file.
- Authorize Endpoint URL — Enter the URL of the OAuthAuthorize.aspx page in Office 365. The URL format is as follows.SharePoint Onlinehttps://your companyname.sharepoint.com/site collection path/_layouts/15/OauthAuthorize.aspxOneDrive for Businesshttps://your company name-my.sharepoint.com/_layouts/15/OauthAuthorize.aspx
- Token Endpoint URL — Enter a URL in the following format.SharePoint Onlinehttps://accounts.accesscontrol.windows.net/your companyname.onmicrosoft.com/tokens/OAuth/2?resource=00000003-0000-0ff1-ce00-000000000000/yourcompany namesharepoint.com@your company name.onmicrosoft.comOneDrive for Businesshttps://accounts.accesscontrol.windows.net/your companyname.onmicrosoft.com/tokens/OAuth/2?resource=00000003-0000-0ff1-ce00-000000000000/yourcompany name-my.sharepoint.com@your companyname.onmicrosoft.com
- Click Save. Your authentication provider is now ready to use.