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.

Developer technologies ASP.NET ASP.NET Core
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 19,795 Reputation points Microsoft External Staff Moderator
    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

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.