In Postman I am trying to generate Access token using Oauth2.0 for MS fabric Update API call.
I have entered below details
POST https://login.microsoftonline.com/tenant-ID/oauth2/v2.0/token
Under Authorization: I selected Oauth2.0
Configure New Token Token Name: test
Grant type: Authorization Code
Callback URL: http://localhost
Auth URL: https://login.microsoftonline.com/Tenant-ID/oauth2/v2.0/authorize
Access Token URL: https://login.microsoftonline.com/Tenant-ID/oauth2/v2.0/token
Client ID: *** Client Secret: *** Scope: https://api.fabric.microsoft.com/.default
Refresh Token URL https://login.microsoftonline.com/Tenant-ID/oauth2/v2.0/token
In Azure AD App Registration I have set- Web Redirect URI: http://localhost
When I click "Get New Access Token" I get error as below
"error": "invalid_request", "error_description": "AADSTS900144: The request body must contain the following parameter: 'grant_type'. Trace ID: ** Correlation ID: ** Timestamp: 2025-02-19 07:33:46Z", "error_codes": [ 900144 ], "error_uri": "https://login.microsoftonline.com/error?code=900144" }
GET https://login.microsoftonline.com/**/oauth2/v2.0/authorize?response_type=code&client_id=3**ac&scope=https%3A%2F%2Fapi.fabric.microsoft.com%2F.default&redirect_uri=http%3A%2F%2Flocalhost 302 POST https://login.microsoftonline.com/**/oauth2/v2.0/token%0A 400 559 ms Error: Could not complete OAuth 2.0 token request


When I clicked on Get New Access Token, I got the sign-in screen:



https://oauth.pstmn.io/v1/callbackand check click on browser in postman and allow the pop-up in browser