可以在用户流定义中配置返回声明的用户流。例如,在策略的"Claims provider" 节点中,您可以添加一个声明数据源来定义您想要返回的声明。以下是一个示例用户流定义(自行替换
{ "Name": "signupsignin", "UserJourneyType": "SignUpOrSignIn", "OrchestrationSteps": [ { "OrchestrationStep": { "Type": "CombinedSignInAndSignUp", "NextStep": "ProfileEdit" }, "Enabled": true }, { "OrchestrationStep": { "Type": "ClaimsProviderSelection", "ClaimsProviderSelections": [ { "TargetClaimsExchangeId": "LocalAccountSigninEmailExchange", "ClaimsProviderName": "Local Account SignIn", "DisplayName": "Sign in", "Enabled": true }, { "TargetClaimsExchangeId": "LocalAccountSignUpExchange", "ClaimsProviderName": "Local Account SignUp", "DisplayName": "Sign up", "Enabled": true } ] }, "Enabled": true }, { "OrchestrationStep": { "Type": "ClaimsExchange", "ClaimsExchanges": [ { "AuthenticationType": "LocalAccountSigninEmailExchange", "DisplayName": "Local Account Signin", "TechnicalProfileReference": "SelfAsserted-LocalAccountSignin-Email", "Enabled": true }, { "AuthenticationType": "LocalAccountSignUpExchange", "DisplayName": "Local Account Sign Up", "TechnicalProfileReference": "LocalAccountSignUpWithLogonEmail", "Enabled": true } ] }, "Enabled": true }, { "OrchestrationStep": { "Type": "ClaimsExchange", "ClaimsExchanges": [ { "AuthenticationType": "LocalAccountSigninEmailExchange", "TechnicalProfileReference": "LocalAccountDiscoveryUsingEmailAddress", "Enabled": true }, { "AuthenticationType": "LocalAccountSignUpExchange", "TechnicalProfileReference": "AAD-UserWriteUsingLogonEmail", "Enabled": true } ] }, "Enabled": true }, { "OrchestrationStep": { "Type": "SendClaims", "ClaimsToSend": "email", "Enabled": true }, "Enabled": true }, { "OrchestrationStep": { "Type": "Send