Search code examples
microsoft-graph-toolkit

How to use Microsoft Graph Toolkit with application permissions (client credentials)


I would like to use Microsoft Graph Toolkit with application permissions instead of delegated permissions. How can I do that ?


Solution

  • The toolkit depends on an IProvider to handle the authentication and permissions - you can add a provider that authenticates using application permissions if you'd like - see docs here on creating custom providers.

    If you are instead handling the authentication on the server side, then you can leverage something like the proxy provider which relays all requests to the graph via your own backend.