我允许用户使用oAuth和Microsoft Graph API授权他们的Microsoft帐户。我正在使用this omniauth strategy来方便授权。在OmniAuth策略中,它包含authorize_params
和token_params
“https://graph.microsoft.com”的资源。这让我验证就好了,但是当我去刷新AUTH,我得到这个错误返回:microsoft_graph oAuth刷新错误
{"error"=>"unauthorized_client", "error_description"=>"AADSTS70001: Resource 'https://graph.microsoft.com/' is not supported as resource.\r\n"}
连同trace_id的和其他一些东西,如果需要,我会发布。
我要刷新的端点是POST https://login.microsoftonline.com/common/oauth2/v2.0/token
,其中client_id
,refresh_token
和params。
刷新此oAuth令牌最近一周工作正常。微软Graph API有什么变化吗?