Search code examples
authenticationoffice365microsoft-graph-apiadal

Office 365 authentication via REST without registering an application


Is there any way of authenticating a user via the Office 365 REST API, without registering an application first?

For example, the documentation of Microsoft Graph has numerous authentication scenarios, including how an application can

but there is no such scenario for a user calling the REST API with some credentials (e.g., username and password) and gets authentication tokens as a response, so that they can subsequently use the rich functionality provided.

The Azure Active Directory Authentication Libraries (ADAL) provide user-level authentication functionality, but they do not expose the REST API.


Solution

  • There is no way to call the Microsoft Graph without registering an app first. All calls to the graph are authenticated using a OAuth2 flow (of which there are several) and all require an app to be registered.