无需先登录的Azure B2C EditProfile自定义策略 [英] Azure B2C EditProfile custom policy without Signing In first

查看:114
本文介绍了无需先登录的Azure B2C EditProfile自定义策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在ProfileEdit.xml文件"rel =" nofollow noreferrer>活动-directory-b2c-custom-policy-starterpack 要求用户登录,然后才允许他们进入编辑配置文件"页面.

Right now the ProfileEdit.xml file that comes with active-directory-b2c-custom-policy-starterpack asks the user to sign in before actually letting them get to the Edit Profile page.

我要完成的用例有些不同.用户已经登录到该应用程序,并且有一个Edit Profile按钮,单击该按钮将带用户进入编辑配置文件"页面.也就是说,不应再次登录.

The use case I'm trying to accomplish is a little bit different. The user is already signed in to the app and there's a button Edit Profile that when clicked will take the user to the Edit Profile page. That is, there should be no Sign in again.

我的应用程序允许用户使用FacebookLocal Account Signin登录.自定义ProfileEdit B2C策略应该知道用户用来登录哪一个策略,并直接将用户重定向到ProfileEdit策略.

My app allows the user to sign in using: Facebook and Local Account Signin. The custom ProfileEdit B2C policy should know which one the user used to login and just redirect the user to the ProfileEdit policy directly.

我尝试弄乱ProfileEdit技术资料,但我的mod没用.

I tried messing up with the ProfileEdit Technical Profile but the mods I did didn't work.

任何对Azure B2C自定义策略更有经验的人都可以让我知道如何实现这一目标吗?

Can anyone more experienced with Azure B2C custom policies let me know how to achieve this?

推荐答案

这很正常,假设有人访问了个人资料编辑链接并将其添加了书签.然后注销.然后启动配置文件编辑->您需要进行登录,否则会中断. 因此,这实际上已经完全正常了,只是您将获得单一登录"功能,因此,一旦使用了登录"过程,个人资料编辑"过程将跳过该步骤.

This is normal, imagine someone got to the profile edit link and bookmarked it. Then logged out. Then launched profile edit -> you need them to login, otherwise things break. So this is actually working perfectly already, just that you will get Single Sign On, such that once you have used the Sign In journey, the Profile Edit journey will skip the sign in step.

您可以像这样测试它:
1.打开一个新的浏览器,然后使用登录过程,登录并完成.
2.打开一个新标签,然后粘贴个人档案编辑"链接,删除提示=登录查询参数.
3.执行链接,您直接进入修改您的个人资料页面,而不是看到登录页面.

You can test it like this:
1. Open a new browser, and use the sign in journey, login and complete.
2. Open a new tab, and paste the Profile Edit link, remove the prompt=login query parameter.
3. Execute the link, you are taken straight to modifying your profile page, rather than seeing a sign in page.

这篇关于无需先登录的Azure B2C EditProfile自定义策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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