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

I have a string collection in a custom policy.I need to find if one of the strings in the string colle

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 ".

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742322187a4422036.html

相关推荐

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

    I have a string collection in a custom policy.I need to find if one of the strings in the string colle

    10小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信