Using AppOnly tokens from non .NET applications
Please explain protocol of exchanging certificate to a token without using .NET AuthenticationManager. Besides it is not clear, does this method applies to SharePoint Online only or to any other on-line resources, like Graph.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e082eb56-fafb-9ef7-fadb-e0b90f5369a9
- Version Independent ID: 0f1a3528-3615-5722-2352-a1ad4622c244
- Content: Granting access via Azure AD App-Only
- Content Source: docs/solution-guidance/security-apponly-azuread.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
Adding a REST API code sample to the article would be greatly helpful.
One alternative is already mentioned in the article. E.g. with SharePoint-PNP Powershell you can use the .PFX directly: https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/connect-pnponline?view=sharepoint-ps#examples
This question isn't specific to SharePoint... you can use any platform to do this. Azure AD offers multiple SDKs that cover all their scenarios, including this. I'd refer to their docs & samples as they will have many more examples than something SharePoint-specific. SharePoint is just an endpoint in this scenario.
To answer the question, the protocol is best explained in the Azure AD docs. The following links should get you started.
- https://docs.microsoft.com/azure/active-directory/develop/active-directory-authentication-libraries
- https://docs.microsoft.com/azure/active-directory/develop/reference-v2-libraries
- https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-daemon-acquire-token
Is there any Rest API sample to perform search operation using SharePoint APIs with AAD tokens?
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues