Daemon in MS Graph

APIPointNewbie 146 Reputation points
2021-12-04T14:55:32.5+00:00

Hello Community,

I have seen more than once that (in for ConfidentialClientApplicationBuilder) WithRedirectUri has a "https://daemon" in it. But what is "https://daemon" good for ?

I would be very happy about an answer.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Danstan Onyango 3,906 Reputation points Microsoft Employee
    2021-12-06T09:03:56.21+00:00

    Daemon is good for confidential clients that run on the serve side without user interaction commonly when using Client Credentials Flow. See Public client and confidential client applications for more info and when to use which client.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2021-12-06T13:11:40.417+00:00

    Hi @APIPointNewbie ,

    Confidential Client Application are applications that uses client id and secret to call Azure AD to get the access tokens and run on servers(webapps, webAPI apps, daemon apps).

    Redirect URI is optional for confidential client applications

    1. It need to specify redirect URI in case of webApp calling WebAPI, then Azure AD will use the URI to send back the token to webApp.
    2. For daemon apps, redirect URI is not required.

    https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-application-configuration#redirect-uri-for-confidential-client-apps

    Thanks,
    Shweta

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.