Adding Token Based Azure EntraID Authentication to GraphQL APIs created on .NET7

Varun Sridhar 0 Reputation points
2024-04-24T10:05:50.0733333+00:00

I have a set of GraphQL APIs created on .NET7.

I want to authenticate the APIs using Azure Entra ID User/App Access Tokens.

Is it possible to achieve the same out of the box, else kindly suggest a workaround.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,569 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 4,005 Reputation points Microsoft Vendor
    2024-04-30T05:54:44.0566667+00:00

    Hi @Varun Sridhar

    Thank you for posting this in Microsoft Q&A.

    I understand that you want to authenticate GraphQL APIs using Azure Entra ID User/App Access Tokens.

    Yes, it is possible to authenticate the APIs using Azure Entra ID User/App Access Tokens by registering an application in Microsoft Entra Id.

    For your reference: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow

    Hope this helps. Do let us know if you any further queries.

    Thanks,
    Navya.

    If the answer is helpful, please click "Accept Answer" and kindly "upvote" it.

    0 comments No comments