dseph / EwsEditor

EWSEditor is a large sample which shows how Exchange Web Services (EWS) calls can be done in code.
263 stars 64 forks source link

Add App&Tenant ID to config? #44

Open SaschaTrollGeberit opened 1 month ago

SaschaTrollGeberit commented 1 month ago

Is it possible to add the app and tenant ID to the config, so I don't must enter them every time?

image
dseph commented 1 month ago

You will need to register an application registration in oAuth. When you do this, you should record the application name, redirect URL, application (client) id, tenant id. If you use an application oAuth flow instead of an delegate oAuth flow then you will also need the client secret VALUE - this is like a password, so be careful with it. You should read the following article: https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth

SaschaTrollGeberit commented 1 month ago

I already have registered app. But can I "save" them in EWS Editor, so I dont have to add them to the ID fields each time I use EWS Editor?

dseph commented 1 month ago

It will not save your credentials or token - it will never support such since it's very unsafe to do so. You can download the code and add to save and retrieve setting if you wish. Please keep in mind that EWSEditor is by its mission a programmers test harness.


From: trc-geberit @.> Sent: Sunday, September 29, 2024 6:18 PM To: dseph/EwsEditor @.> Cc: Daniel Bagley @.>; Comment @.> Subject: Re: [dseph/EwsEditor] Add App&Tenant ID to config? (Issue #44)

I already have registered app. But can I "save" them in EWS Editor, so I dont have to add them to the ID fields each time I use EWS Editor?

— Reply to this email directly, view it on GitHubhttps://github.com/dseph/EwsEditor/issues/44#issuecomment-2381631178, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACCELKGCPJOC5O7YQ5CP2QLZZB4BVAVCNFSM6AAAAABO6YOAIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGYZTCMJXHA. You are receiving this because you commented.Message ID: @.***>