Active Directory登录:重定向android的URI? [英] Active Directory sign in: Redirect URI for android?

查看:65
本文介绍了Active Directory登录:重定向android的URI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xamarin Forms移动应用程序,其中打算使用Active Directory进行用户帐户管理.我已经在Azure和Xamrin Forms应用程序中实现了功能性注册/登录,能够在UWP上运行时进行注册/登录. 但是,当尝试在android中执行相同操作时,出现错误.我的理解是,根据操作系统的不同,redirectURI需要有所不同.
我的UWP重定向URI是:

$" urn:ietf:wg:oauth:2.0:oob"

我应该为Android/iOS使用什么重定向URI?这是我要使活动目录在其他OS上正常工作所需的唯一更改吗?

I am working in a Xamarin Forms mobile app in which I intend to use Active Directory for user account management.  I have implemented a functional signup / signin in Azure and in my Xamrin Forms app, am able to sign up / sign in when running on UWP.  However when trying to do the same in android I get an error.  My understanding is that the redirectURI needs to be different depending on the OS.  

My UWP redirect URI is:

$"urn:ietf:wg:oauth:2.0:oob"

What redirect URI should I be using for Android / iOS?  And is this the only change I need to make for active directory to work in the other OS's?

推荐答案

您正在使用哪个指南?

Which guide are you using?

本指南提供了一些示例,用于将Azure Xamarin Forms Android应用程序使用的重定向URI.

This guide has some example Redirect URIs to use for an Azure Xamarin Forms Android application.

https://docs.microsoft.com/zh-cn/azure/app-service-mobile/app-service-mobile-dotnet-how-to-use-client-library

https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-dotnet-how-to-use-client-library

还有一些有用的Github示例.

There are also some useful Github samples for this.


这篇关于Active Directory登录:重定向android的URI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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