![](/img/trans.png)
[英]Azure AD B2C signup only custom policy does not create a session cookie in the .net MVC application
[英].Net MVC integration with Azure Ad B2C signuponly and password reset custom policy returns id_token as # fragment in the url
我正在嘗試將 .net MVC 應用程序與 Azure B2C 集成。
Azure B2C 已經設置了注冊和重置密碼流程的自定義策略。
注冊並重置密碼后,我無法在服務器端獲取令牌。 令牌作為片段 #id_token 通過 url 發送。 我是否需要在自定義策略中指定任何內容才能將令牌從片段更改為查詢或 form_post?
嘗試在 RelyingParty PasswordReset 文件中添加 Metatag。
<TechnicalProfile Id="PolicyProfile">
<DisplayName>PolicyProfile</DisplayName>
<Protocol Name="OpenIdConnect" />
<InputTokenFormat>JWT</InputTokenFormat>
<Metatag>
<Item Key="response_types">id_token</Item>
<Item Key="response_mode">query</Item>
<Item Key="scope">email openid</Item>
</Metatag>
但是xsd解析文件失敗,報如下錯誤:
命名空間“http://schemas.microsoft.com/online/cpim/schemas/2013/06”中的元素“TechnicalProfile”在命名空間“ http://schemas.microsoft.com/online/ ”中具有無效的子元素“元數據” cpim/schemas/2013/06 '. 看起來標簽不能直接添加到依賴方文件中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.