How to Get Bearer Token for Azure Resources using Postman | Create Bearer Token via Postman Request

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • How to Get Bearer Token for Azure Resources using Postman | Create Bearer Token via Postman Request
    HOW TO GET A POSTMAN BEARER TOKEN FOR AZURE RESOURCES
    Here, we will look at how to get a bearer token using Postman for connecting to Azure resources.
    Notepad details:
    Login to Azure Portal.
    1). Open Entra ID (AAD)
    Note Tenant ID
    login.microsof...{tokenId}/oauth2/token
    2). Now add this URL to Postman tool with POST method.
    go to the Body tab and select x-www-form-urlencoded:
    a). First the key is grant_type and value is client_credentials
    b). Next, we will need a client id. In Azure, select App Registrations, register new app.
    client_id
    c). Now let’s add a client secret.
    Got to certificates/secrets section of New App and add New client secret:
    client_secret
    d). Now, provide the resource. We can see API Permissions this app has access to by going to API Permissions.
    resource= graph.microsof...
    When we hit POST, response with token will be received in "access_token"

Комментарии • 13