Azure DataExplorer - autorization code
itay4
31
Reputation points
I want to create the token using the authorization code flow, I use this scope: https://management.azure.com/.default
but I keep getting this error:
'HTTP/1.1 401 Unauthorized\r\n'
header: WWW-Authenticate: Bearer authorization_uri="https://login.microsoftonline.com/common", error="invalid_token", <XX_REPLACED> audience 'https://management.azure.com' is invalid"
when sending the request to: kusto.windows.net:443 "POST /v1/rest/query HTTP/1.1" 401 0
what is the problem?
My user has all the required permissions to the database: Cluster AllDatabasesAdmin