MJB
MJB

Reputation: 9399

Authentication to Exchange Web Services without username/password and without Admin involvement

Here's the scenario

I believe this is currently impossible, but wanted to verify:

Is my analysis correct? Any options I've missed?

Upvotes: 5

Views: 2258

Answers (2)

MJB
MJB

Reputation: 9399

So to add to this mostly correct answer from Jason:

  1. using pure rest, you need only create a "multitenant" application and users can self-consent.
  2. You can also use an OAuth token to authenticate to EWS - but only if the delegate Full Access To Mailbox is selected. This also doesn't require admin consent but is a big scope (but necessary because EWS doesn't understand scopes)

Upvotes: 0

Jason Johnston
Jason Johnston

Reputation: 17702

You're mostly correct. OAuth is currently for Office 365 only, so that would rule out on-premise. However, with OAuth you do not have to host your back-end in Azure. You would need an Azure tenant to register your application, but the app itself is not required to be hosted in Azure. If you use EWS, then even with OAuth you will need some admin involvement, because EWS requires a permission scope that requires the app to be registered in the target tenant, users can't consent using a registration from another tenant.

If you use the REST APIs, which are in preview, you wouldn't need an admin's involvement, users could consent for themselves. That would get you almost where you want to be (assuming the REST APIs provide the data that you're after), but wouldn't support on-premise.

Upvotes: 3

Related Questions