I'm trying to implement Microsoft Azures Address Validation. I get it to work using the implicit OAuth v2 but I would like to implement this as a service.
I have added Client Sercets and tried using that method but I don't get an Auth Token back.
Am I not implementing the Auth Service correctly? Can this API be used with our actual user logging in each time?
Micorsoft Azure Address Validation
[Azure app registration](https://i.sstatic.net/ck9oW.png)
[PostMan Auth](https://i.sstatic.net/pkERQ.png)
[Token Response](https://i.sstatic.net/czeQa.png)
Thanks for the Help.
I tried to reproduce the same in my environment and got the results successfully like below:
I created Azure AD Application and added API permissions:
I generated the access token by using below parameters:
https://login.microsoftonline.com/TenantID/oauth2/v2.0/token
client_id:ClientID
client_secret:ClientSecret
scope:https://management.azure.com/.default
grant_type:client_credentials
To validate the address, I used below query:
POST https://management.azure.com/providers/Microsoft.Billing/validateAddress?api-version=2019-10-01-preview
{
"addressLine1": "55 110th Ave NE",
"city": "bellevue",
"region": "wa",
"postalCode": "98004",
"country": "us"
}
In Authorization tab, paste the access token like below:
Reference: