最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure ad b2c - " character in b2c custom policy - Stack Overflow

programmeradmin1浏览0评论

I have a string collection in a custom policy. I need to find if one of the strings in the string collection contains certain value. The problem is that the value is /"id/" /"guid/". How do I introduce the " character in the custom policy so I can use claims transformations to check for the value?``

I have a string collection in a custom policy. I need to find if one of the strings in the string collection contains certain value. The problem is that the value is /"id/" /"guid/". How do I introduce the " character in the custom policy so I can use claims transformations to check for the value?``

Share Improve this question asked Nov 20, 2024 at 23:27 IriaAMIriaAM 254 bronze badges 1
  • To introduce the " character in a string within an Azure AD B2C custom policy, you can escape it by using a backslash (). For example, if you want to check if a string in your collection contains the value /"id/" /"guid/", you would represent it as \/"id\/" \/ "guid\/" in your claims transformation rules. This allows you to properly include the double quotes in your string comparisons. – Rukmini Commented Nov 21, 2024 at 8:21
Add a comment  | 

1 Answer 1

Reset to default 1

Custom policies are just XML files, you should be able to use " in the XML and B2C will interpret that as ".

发布评论

评论列表(0)

  1. 暂无评论