Azure AD注销URL不重定向 [英] Azure AD Logout URL not redirecting

查看:202
本文介绍了Azure AD注销URL不重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建以下URL

I am building the following URL

https://login.microsoftonline.com/<tenantid>/oauth2/logout?client_id=<clientId>&post_logout_redirect_uri=<encodedurl>

看起来像

https://login.microsoftonline.com/f4aaf6e1-ffff-ffff-bb63-4e8ebf728113/oauth2/logout?client_id=f562b4e3-ffff-ffff-b4bb-49ca64216e75&post_logout_redirect_uri=https%3A%2F%2Fmyazureapp.azurewebsites.net

它会将我注销,但不会将我重定向回我的应用

It logs me out but does not redirect me back to my app

就像此URL可以使天蓝一样

Like this URL does for azure

https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=https%3a%2f%2fmanage.windowsazure.com%2fSignOut%2fComplete

我查看了建议的相关Q,并尝试了一些变体。

I have looked at the suggested related Q's and I have tried a few variations.

编辑,事实证明这是一个间歇性问题,我猜这是由于某些Cookie /我在执行操作时无法重置其他状态开发/测试周期。使用全新的浏览器,它可以工作。退出后,屏幕上会显示诸如在我们退出时稍候片刻之类的内容,然后重定向,当退出屏幕时,屏幕上显示您已退出,请关闭浏览器

Edit it turned out to be an intermitted issue which I guess was due to some cookies / other state not be reset when I was doing my dev / test cycles. With a fresh browser it works. When it works the sign out screen says something like "Hang on a moment while we sign you out" then it redirects, when it does not work the screen says "you have been signed out, please close your browser"

推荐答案

在广告应用程序中设置注销URL 属性。

Set the Logout URL property in your AD application.


  1. 登录

  2. 选择您的AD应用

  3. 转到属性

  4. 更新所需的应用程序注销重定向URL,如图

  5. 保存

  1. Log into the AAD admin center portal
  2. Go to App registrations as shown
  3. Select your AD application
  4. Go to Properties
  5. Update your intended application logout redirection URL as shown
  6. Save

这篇关于Azure AD注销URL不重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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