如何确定是否一个电子邮件地址是一个微软的工作或学习的“帐户或Microsoft帐户 [英] How to determine if an email address is a Microsoft 'Work or School' account or a Microsoft Account

查看:1525
本文介绍了如何确定是否一个电子邮件地址是一个微软的工作或学习的“帐户或Microsoft帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对阵双方微软账户和工作或学习'在Azure的多租户环境帐户进行身份验证。每种身份验证类型需要不同的要求。如果我尝试登录作为对'上班或上学的Microsoft帐户要求登录将在微软登录失败,无法返回到我的应用程序。

I would like to authenticate against both Microsoft accounts and 'Work or School' accounts in a Azure multi-tenant environment. Each authentication type requires different requests. If I try to login as a Microsoft account against the 'work or school' request the login will fail at the Microsoft login and not return to my application.

有没有一种方法来查询,如果给定的电子邮件地址是针对微软图形API一个工作或学习的帐户?

Is there a way to query if a given email address is a 'Work or School' account against the Microsoft graph API?

推荐答案

如果您使用REST API,它会自动处理这两种类型的帐户。

If you use the REST api, it should automatically handle the two types of accounts.

但是,它是在preVIEW和可能具有限制或问题。

However, it is in preview and might have restrictions or issues.

下面是使用REST API指南:的http://图。 microsoft.io/en-us/docs/platform/rest

Here is a guide for using the REST api: http://graph.microsoft.io/en-us/docs/platform/rest

但一定要检查是否是可以接受给定的限制的工作:的https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-limitations/

But be sure to check if that is acceptable to work with given the restrictions: https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-limitations/

这篇关于如何确定是否一个电子邮件地址是一个微软的工作或学习的“帐户或Microsoft帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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