我正在尝试为Azure应用配置Google帐户联盟。当我尝试登录Web应用程序时出错 [英] I am trying to configure google account federation for Azure app. Throws an error when I try to login to web app

查看:82
本文介绍了我正在尝试为Azure应用配置Google帐户联盟。当我尝试登录Web应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello team, 

Hello team, 

我正在尝试通过Google帐户验证网络应用程序。我在Google应用门户网站中创建了应用ID和凭据。 

I am trying to authenticate a web application through google account. I have created app id and credentials in google app portal. 

上面用于创建的域名是"login.microsoftonline.com"。并且提到的返回uri是"https://login.microsoftonline.com/te/aanchalharitlive.onmicrosoft.com/oauth2/authresp"其中"aanchalharitlive.onmicrosoft.com"
是我的租户ID。 

The domain used to create above is "login.microsoftonline.com" and the return uri mentioned is "https://login.microsoftonline.com/te/aanchalharitlive.onmicrosoft.com/oauth2/authresp" where "aanchalharitlive.onmicrosoft.com" is my tenant id. 

@ Azure门户网站,At AAD - >组织关系 - >身份提供者 - >添加了Google 

@ Azure portal, At AAD -> Organizational relationships -> Identity providers -> added google 

现在在网络应用程序 - >身份验证和身份验证..->用google登录 - >然后在谷歌配置 - 输入在谷歌应用程序中创建应用程序时创建的客户端ID和客户端密码。

Now At web application -> Authentication and auth ..-> Login with google -> then in google configuration - Entered the client id and client secret which were created while creating app in google app.

然而,当我尝试点击URL' https://webapp-google.azurewebsites.net'它说' 错误:redirect_uri_mismatch'。 

However when I try to hit the URL 'https://webapp-google.azurewebsites.net' it says 'Error: redirect_uri_mismatch'. 

请找到随附的屏幕截图。 

Please find the screen shot attached herewith. 

问候,

snehal kumar

snehal kumar

sk.ladhe@outlook.com

sk.ladhe@outlook.com

推荐答案


上面用于创建的域名是"登录" .microsoftonline.com"并且提到的返回uri是"https://login.microsoftonline.com/te/aanchalharitlive.onmicrosoft.com/oauth2/authresp"其中"aanchalharitlive.onmicrosoft.com"
是我的租户ID。

The domain used to create above is "login.microsoftonline.com" and the return uri mentioned is "https://login.microsoftonline.com/te/aanchalharitlive.onmicrosoft.com/oauth2/authresp" where "aanchalharitlive.onmicrosoft.com" is my tenant id.

请确保您在上一节中使用了正确的目录ID。 要查找您的目录ID,转到https://portal.azure.com,在Azure Active Directory下,选择"属性"并复制"目录ID"。

Make sure that, you are using the correct directory id in the above section. To find your directory ID, go to https://portal.azure.com, and under Azure Active Directory, choose Properties and copy the Directory ID.


这篇关于我正在尝试为Azure应用配置Google帐户联盟。当我尝试登录Web应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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