我创建了 python flask api,我需要使用 azure 活动目录对其进行身份验证。我有client secret
,client id
和tenant
。我正在关注微软的这个例子。但它抛出错误:
Sign in
Sorry, but we’re having trouble signing you in.
AADSTS65005: Misconfigured application. This could be due to one of the
following: The client has not listed any permissions for 'Microsoft Graph' in
the requested permissions in the client's application registration. Or, The
admin has not consented in the tenant. Or, Check the application identifier in
the request to ensure it matches the configured client application identifier.
Please contact your admin to fix the configuration or consent on behalf of the
tenant. Client app ID: 561b7942-251c-4f36-8f80-4409947bf61f
任何人都可以建议我使用 azure 活动目录来验证基于 python 烧瓶的应用程序的良好工作示例/教程。
谢谢
错误代码指向缺少权限。
您所遵循的示例看起来不错。请检查您是否正确执行此步骤
- 为您的应用程序配置权限。在“设置”菜单中,选择“所需权限”部分,然后单击“添加”,然后单击“选择 API”,并在文本框中键入 Microsoft Graph。然后,单击“选择权限”并在“委派权限”下方选择“登录并阅读用户配置文件”。
我正在提供屏幕截图以使其更加明确。请务必关注到最后。尤其是点击“授予权限”的最后一步。我已经多次看到它被错过并导致像你这样的错误,因为没有同意。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句