From 177ee0fc534f45ededa059c2d9c40bdffb7bb9d5 Mon Sep 17 00:00:00 2001 From: rgdevment Date: Fri, 20 Mar 2026 09:01:57 -0300 Subject: [PATCH] fix: update Microsoft OAuth token URL and change resource to scope --- resources/scripts/update_badge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/scripts/update_badge.py b/resources/scripts/update_badge.py index 2dd65d9..ba0e6be 100644 --- a/resources/scripts/update_badge.py +++ b/resources/scripts/update_badge.py @@ -117,10 +117,10 @@ def get_cloudsmith_downloads(api_key, owner, repo): def get_ms_token(tenant, client_id, client_secret): - url = f"https://login.microsoftonline.com/{tenant}/oauth2/token" + url = f"https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token" payload = urllib.parse.urlencode({ 'grant_type': 'client_credentials', - 'resource': 'https://manage.devcenter.microsoft.com', + 'scope': 'https://manage.devcenter.microsoft.com/.default', 'client_id': client_id, 'client_secret': client_secret }).encode('utf-8')