德国Ofiice 365 O Auth的问题 [英] Problem with German Ofiice 365 O Auth

查看:71
本文介绍了德国Ofiice 365 O Auth的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

b


$
我们使用了  Azure Active Directory(https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/aad-oauth),用于在线共享点进行身份验证。





$
我在portal.azure.com注册了一个应用程序,其中client_id = d8147 ************* ************* 41c04 



授权美国Office 365帐户的Url是 



  https://login.microsoftonline.com/common/oauth2/authorize

https://login.microsoftonline.com/common/oauth2/token

https://api.office.com/discovery/v2.0/me/services



这些适用于美国Office 365帐户,我可以获得代码和访问令牌。





现在,我需要支持德国账户  ,德国Office 365的授权网址是    https://login.microsoftonline.de/common/oauth2/authorize

https://login.microsoftonline.de/common/oauth2/token

https:// api.office.de/discovery/v2.0/me/services



我试图将同样的client_id和client_secret用于德国Office 365帐户,但它显示如下错误

{

'错误':'invalid_client',

'error_description':'AADSTS70002:验证凭据时出错。 AADSTS50012:提供了无效的客户端密码。\\\\\
Trace ID:44c86217-6a75-45ab-ba2c-6df352bb0500 \\\\\\ n相关ID:f4bba10c-0dbb-4c1c-8454-a30a6c252929 \\\\\\ n时间戳:2018-06-04 05:57:53Z',

'error_codes':[

70002,

50012

],

'时间戳':'2018-06-04 05:57:53Z',

'track_id ':'44c86217-6a75-45ab-ba2c-6df352bb0500',

'intelation_id':'f4bba10c-0dbb-4c1c-8454-a30a6c252929'







$
我可以使用相同的Client_id(d8147 ************* ************* 41c04)和德国Office 365帐户的Client_secret也?或者我需要在https://portal.microsoftazure.de中注册一个新的应用程序(new client_id)?




$ b



$
提前谢谢!

解决方案

您好



Azure德国的Azure Active Directory与全局Azure中的Azure Active Directory完全分离,所以你必须在德国AD注册。


您可以查看以下官方链接了解更多详情。


https://docs.microsoft.com/en-us/azure/germany/germany-services- SECU rityandidentity


最好的问候,



Hi,


We used  Azure Active Directory (https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/aad-oauth) for Authentication with Share point Online.



I registered an application in portal.azure.com with client_id=d8147**************************41c04 

The authorization Url's for US Office 365 accounts is 

 https://login.microsoftonline.com/common/oauth2/authorize
https://login.microsoftonline.com/common/oauth2/token
https://api.office.com/discovery/v2.0/me/services

These are working perfectly for US Office 365 accounts, I can able to get Code and Access token.



Now, I need to give support for German Account  , The authorization url's of German Office 365 is    https://login.microsoftonline.de/common/oauth2/authorize
https://login.microsoftonline.de/common/oauth2/token
https://api.office.de/discovery/v2.0/me/services

I tried to use same client_id and client_secret for German Office 365 account, but it is showing following error
{
'error': 'invalid_client',
'error_description': 'AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided.\\r\\nTrace ID: 44c86217-6a75-45ab-ba2c-6df352bb0500\\r\\nCorrelation ID: f4bba10c-0dbb-4c1c-8454-a30a6c252929\\r\\nTimestamp: 2018-06-04 05:57:53Z',
'error_codes': [
70002,
50012
],
'timestamp': '2018-06-04 05:57:53Z',
'trace_id': '44c86217-6a75-45ab-ba2c-6df352bb0500',
'correlation_id': 'f4bba10c-0dbb-4c1c-8454-a30a6c252929'




Can i use same Client_id (d8147**************************41c04) and Client_secret for German Office 365 account also? or do i need to register a new Application (new client_id) in https://portal.microsoftazure.de?





Thanks In Advance!

解决方案

Hi,

Azure Active Directory in Azure Germany is completely separated from Azure Active Directory in global Azure, so you have to register in German AD.

You could check below official link for more details.

https://docs.microsoft.com/en-us/azure/germany/germany-services-securityandidentity

Best Regards,

Lee


这篇关于德国Ofiice 365 O Auth的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆