先决条件
若要续订 User Store ID 密钥,你需要以下密钥/令牌:- 具有受众 URI 值
https://onestore.microsoft.com的 Microsoft Entra ID 访问令牌 - 已在你的应用客户端代码中生成的已过期 Microsoft Store ID 密钥。
在 Microsoft Store 服务中的 User Store ID 密钥 30 天有效期到期前进行续订,让你的后端能继续对调用进行身份验证。
https://onestore.microsoft.com 的 Microsoft Entra ID 访问令牌相关主题
为服务到服务身份验证请求 User Store ID使用 Microsoft Store API 对你的服务进行身份验证使用 X-token 或 OAuth 2.0 请求 User Store IDXStoreGetUserPurchaseIdAsynccollections.mp.microsoft.com/v8.0/collections/consume