I am unable to get Refresh Token using Azure Service Principal (using Client ID & Client Secret)
Kindly help me in getting the refresh token via CURL and how to use it.
When i run the below CURL command in Windows CMD Prompt, i am getting Access Token. Whereas i am not getting refresh token along with it.
am i missing something here ?
Input :
curl -X POST https://login.microsoftonline.com/12345/oauth2/token ^
-F grant_type=client_credentials ^
-F resource=https://management.core.windows.net/ ^
-F client_id=12345-abcde ^
-F client_secret=12345abcde
Output:
{
"token_type": "Bearer",
"expires_in": "3600",
"ext_expires_in": "3600",
"expires_on": "1554368330",
"not_before": "1554364430",
"resource": "https://management.core.windows.net/",
"access_token": "XXXXXXXXXXXXX"
}
As the output doesn't have refresh token (how do i get it)
Kindly requesting for any possible insights