C
C#5mo ago
Suzz

implement api in asp.net core to subscribe for office365 mail using microsoft graph api

Hi, i have a requirement to develop a asp.netcore application to listen to change notification on receiving a new mail based on some condition. I've created a sample app by referring this YouTube tutorial https://www.youtube.com/watch?v=fThiCZmIcMQ&list=PLWZJrkeLOrbbOve1DVVQsauZX2LN3IEHL&index=12 but there are challenges i face challenge 1: that i need to get the user credentials(clientid,tenantid and application secret) through an api, then create subscription for the particular user and then listen to the notification when new mail arrives and give the response back to the application user, who has the ms account linked with. challenge2: the user will input credential on a different organisation. what i have done is that Step 1: created a office365 account on trial. Step 2: registered an app in azure portal(entraid) with which setup my supported accounts to Multitenant Step 3: configured ngork and setup it to listen to my application port Step 4: created asp.netcore 7 application and updated the appsettings with accurate admin credentials( tenantid, clientid and clientsecret, ngorkUrl etc...) please help me to handle challenge 1 and 2 also i referred this github page, but a lot breaking changes are there in the graph api, so it get difficult to update to my application. https://github.com/microsoftgraph/aspnet-webhooks-rest-sample please help me to resolve the issue
Microsoft 365 Developer
YouTube
Change notifications with Microsoft Graph - June 2019
This module will introduce you to working with change notifications (webhooks) & track changes (delta query) in the Microsoft Graph. For more information visit: https://github.com/microsoftgraph/msgraph-training-changenotifications
GitHub
GitHub - microsoftgraph/aspnet-webhooks-rest-sample: Webhooks in Mi...
Webhooks in Microsoft Graph notify your web application about changes in user data. You can create a webhook subscription to get notified about changes in user's data. This sample uses the ...
No description
0 Replies
No replies yetBe the first to reply to this messageJoin