page_type | description | products | languages | extensions | contentType | createdDate | ||||
---|---|---|---|---|---|---|---|---|---|---|
sample |
This sample illustrates how you can use Resource Specific Consent (RSC) to call Graph APIs. |
|
|
samples |
07-07-2021 13:38:26 |
This sample illustrates you can use Resource Specific Consent (RSC) to call Graph APIs.
-
.NET Core SDK version 3.1
# determine dotnet version dotnet --version
-
Register your app with Microsoft identity platform via the Azure AD portal
- Your app must be registered in the Azure AD portal to integrate with the Microsoft identity platform and call Microsoft Graph APIs. See Register an application with the Microsoft identity platform.
-
Clone the repository
git clone https://github.com/OfficeDev/microsoft-teams-samples.git
-
Build your solution
- Launch Visual Studio
- File -> Open -> Project/Solution
- Navigate to
samples/graph-rsc
folder - Select
RSCDemo.sln
file - Build the solution
-
Setup ngrok
ngrok http -host-header=rewrite 3978
-
Config changes:
- Add your client id, client secret in appsettings.json
- Press
F5
to run the project - Update the ngrok in manifest
- Zip all three files present in manifest folder.
-
Upload app manifest file (zip file) to your team