Does Azure AD/ Identity platform provide API for user doing login and get authorization code? instead of letting user input username/password interactively in the login page

Li Yang 1 Reputation point
2022-07-15T20:44:35.583+00:00

I am trying to user curl to do the user login and get the auth code, then use the auth code to exchange the access tocken/id tocken, but don't know what is the API that I can use for login the use and get the auth code,
does the azure ad/idp can only do interactive user login through login page?
please help me, thank you very much!

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2022-07-17T21:08:00.18+00:00

    Hello @Li Yang

    Yes, here is a guide to get an OAuth Token from Azure API with POSTMAN.

    https://documenter.getpostman.com/view/6227162/T1Ds8abg#e60544da-1da5-47d7-a859-939504f005a7

    Azure REST API reference for all of the REST API services available.

    https://learn.microsoft.com/en-us/rest/api/azure/

    ----------------------------

    If this helps please mark as correct answer.


  2. Yang, Li 26 Reputation points
    2022-07-21T14:27:07.88+00:00

    Hi

    Can anybody help answer this question? we really need to understand this and proceed our project, thank you very much!

    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.