首页 \ 问答 \ B2B与Microsoft Graph(B2B with Microsoft Graph)

B2B与Microsoft Graph(B2B with Microsoft Graph)

正如您可能知道的那样,我正在创建一个使用B2B功能的多租户天青应用程序。

我正在测试B2B功能,经过一些研究,我得到了一个工作示例。

小摘要:用户根据共同权限进行身份验证,第一个令牌是通过授权代码的共同权限获取的,从那时起,每当我需要服务客户端时,我都会尝试从“当前租户”权限中获取这些令牌。

当我要求'我'时,它只能对付住户。 当我向可信租户索要我的信息时,出现错误消息,表示我的用户标识符不存在于目录中。 可能因为用户实际上并不存在于可信租户中。

当我要求用户时,它工作正常。 我可以同时获得住房租户用户和可信租户用户。

这是正常的行为吗? 这是我需要以编程方式处理的事情,还是通过使用AD图解决了这个问题? (所以当我知道我需要用户信息时,只需查询主租户?)或者这是一个错误?

任何想法都将不胜感激!


As you probably know, I am creating a multi-tenant azure application, which is using the B2B functionallity.

I am testing the B2B functionality and after some research I got a working sample.

Small summary: User authenticates against common authority, first token is acquired via common authority with the authorization code and from then, everytime I need a service client, I try to obtain those tokens from the 'current tenants' authority.

When I request 'Me', it only works against the home tenant. When I request me with a trusted tenant, I got an error that my user identifier does not exist in the directory. Probably because user does not actually exist in the trusted tenant.

When I request Users, it works fine. I can get both, home tenant users and trusted tenant users.

Is this normal behaviour? Is this something I need to handle programmatically or would this been solved by using the AD graph? (So when I know I need user info, just query the home tenant?) Or is this a bug?

Any thoughts on this would be greatly appreciated!


原文:https://stackoverflow.com/questions/40658837
更新时间:2022-05-10 14:05

最满意答案

当计算机上的组策略重置测试执行所需的自动登录注册表项时,通常会发生此问题,而部署测试代理步骤尝试设置此注册表项。

要使测试代理以交互方式运行,我们需要在该框上有一个有效的用户会话,并且如果该会话不存在,那么通过自动登录创建该会话。

因此,请检查您是否为您的测试机启用了自动登录功能,或者是否有任何组策略限制了自动登录功能。

请尝试下面的内容来缩小问题的范围:

  1. 如果您之前已成功执行过测试,只需尝试重新启动测试机器并取消选中“ 高级 ”下的“ 更新测试代理 ”(默认情况下已选中并且每​​次都强制重新安装TA)。

  2. 如果以前没有执行过,则可以尝试下载测试代理2015,然后手动安装在该机器上并检查结果。

如果这不起作用,那么请尝试:

  • 配置为服务并使用,如果这是一个选项。
  • 要求您的IT管理员为自己的测试机器禁用自动登录的域策略。

另一方面,您可能会尝试找到另一台测试机器来测试测试代理是否可以在其上部署良好。


This issue usually happens when the group policy on the machine resets the Autologon registry key required for test execution, while the deploy test agent step tries to set this registry key.

For Test agent to run interactively, we need to have a valid user session on the box and if that session is not present then via autologon to create that session.

So, please check if you have enabled the autologon for your test machine, or any group policies restrict the autologon.

Please try below things to narrow down the issue:

  1. If you have successfully performed the test before, just try to reboot the test machine and uncheck ‘Update Test Agent’ under “Advanced” (by default it’s selected and forces to reinstall TA everytime).

  2. If not performed before, you could try to download the test agent 2015, then install it on that machine manually and check the result.

If that doesn't work, then try:

  • Configure as service and use if that is an option.
  • Ask your IT admin to disable your domain policies around autologon for your test machines.

On the other hand, you may try to find another test machine to test if test agents can be deployed well on it.

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。