0

我一直在关注https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-android-get-started-users 来配置我的应用程序以使用 Azure 登录 Google身份验证服务,我得到一个登录屏幕,我点击一个帐户并登录。

但是,我被路由到以下成功登录的屏幕,没有重定向到我的应用程序

在此处输入图像描述

我已经检查了我的重定向 URL 和其他 URL 的四倍,并执行了以下操作:1)Web 应用程序的 Google 凭据 ID 和密钥,2)使用 debug.keystore 生成的 Android 应用程序的 SHA-1,3)列出的身份验证/授权 Azure 后端设置在 Azure 培训站点中。

我认为可能性仍然在于 URL 格式问题,但我已经尝试了从 easyauth.callback 到 /.auth/login/google/callback 和 https 到 http 的所有方法,但它没有重定向到我的应用程序并且不提供身份验证

我正在使用待办事项列表示例。

4

4 回答 4

0

I finally figured it out! I think this is the same issue you are having. You can not have your Url Scheme start with a capital letter. yes... it's that simple. Stumped me for over 2 weeks. my Url Scheme was "ToDoList53172" and I switched it to "todolist53172" and it worked. I think that only the starting letter needs to be undercase, but I just did it to all letters lol.

于 2018-01-31T17:32:56.283 回答
0

解决方案是在您的应用程序中正确格式化 redirectURL 和设置。例如,要使用 URL 方案“ZumoE2ETestApp”配置 zumo e2e 测试应用程序,您只需在“允许的外部重定向 URL”设置中添加“ZumoE2ETestApp://easyauth.callback”。

于 2018-02-02T00:46:33.087 回答
0

我终于想通了!在 Azure 门户允许的外部重定向 URL 字段中成功登录后,您只需传递下一页 URL。

例如:- https://www.example.com/after-login

于 2021-12-22T07:24:09.483 回答
0

我的建议是降级到 2.0 或 3.0 Azure 移动客户端。我知道这不是一个很好的答案。但我一直被困在你曾经去过的地方。一个多星期。我正在切换我的应用程序以复制 Adrian Hall 的示例项目,该项目设置为在 2.0 Azure 移动客户端上运行。 https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter2/enterprise/

于 2018-01-26T18:49:07.380 回答