Forum Discussion
Michael Shalev
Apr 18, 2018Former Employee
Authorization and Microsoft Graph Security API
Understanding authorization when calling the Microsoft Graph Security API
High-level summary: Security data accessible via the Microsoft Graph Security API is very sensitive and is protected using ...
Brendon Stempniak
Dec 08, 2018Copper Contributor
Michael,
I appreciate your reply! I was still not able to find a code example of app authenticate. All of the listed example only contain code for user it seems unless I keep over looking something. I might just be misunderstanding something due to inexperience but I appreciate your help thus far
Michael Shalev
Dec 10, 2018Former Employee
Hi Brendon,
You can download the Auth Helper sample code here:
https://github.com/microsoftgraph/Graph-Security-API-Auth-Sample
When you compile and run the application, you'll see three tabs in the app's UI:
- User delegated authorization
- Application-only authorization
- Help
Select the second, and provide the AppId and AppKey (Secret) - after verifying that you defined App-Only permissions in the app registration (http://apps.dev.microsoft.com)
I hope this solves the issue for you
Michael