sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Using AppOnly tokens from non .NET applications

Open superglue777 opened this issue 8 years ago • 5 comments

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.

superglue777 avatar Jun 18 '18 07:06 superglue777

Adding a REST API code sample to the article would be greatly helpful.

aaronmi avatar Sep 28 '18 17:09 aaronmi

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

silmer avatar Apr 11 '19 11:04 silmer

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

andrewconnell avatar Jun 19 '19 15:06 andrewconnell

Is there any Rest API sample to perform search operation using SharePoint APIs with AAD tokens?

abbodh avatar Oct 02 '19 05:10 abbodh

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

msft-github-bot avatar Jan 27 '20 12:01 msft-github-bot