如何通过 Azure AD B2C 自定义策略中的 REST API 调用填充 StringCollection?
我的 Rest API 将其返回ResponseContent
class ResponseContent {
public string version;
public int status;
public string[] strings;
}
new ResponseContent
{
version = "1.0.0",
status = (int) HttpStatusCode.OK,
strings= new [] { "str1", "str2", "str3", "str4", "str5"}
},
Run Code Online (Sandbox Code Playgroud)
技术配置文件按预期执行,但当它StringCollection通过旅程记录器将显示内容填充为字符串列表时
当我尝试在自断言页面中将它们显示为下拉列表时,列表为空。
这是否可以做到这一点,如果可以的话如何实现?
这是我的声明定义,因为你看不到枚举
<ClaimType Id="strings">
<DisplayName>Strings to be populated from REST Service </DisplayName>
<DataType>stringCollection</DataType>
<AdminHelpText>blah.</AdminHelpText>
<UserHelpText>blah.</UserHelpText>
<UserInputType>DropdownSingleSelect</UserInputType>
</ClaimType>
<!-- here is the technical profile that i am using to populate …Run Code Online (Sandbox Code Playgroud) azure-ad-b2c ×1