Azure Ad b2c: Get email in Claims after successfully Signin in azure ad b2c

后端 未结 2 1715
盖世英雄少女心
盖世英雄少女心 2021-01-06 02:04

I am using starter pack of custom polices with SocialAndLocalAccounts pack.

It is working fine for me.

But I am facing one issue.I need to

2条回答
  •  天命终不由人
    2021-01-06 02:55

    Following describes how you can save, load, and then issue the otherMails claim as emails from the sign-up/sign-in and password reset policies.

    When writing a local account: You must create the otherMails claim from the email claim using the CreateOtherMailsFromEmail claims transformation and then persist the otherMails claim in the AAD-UserWriteUsingLogonEmail technical profile:

    
      ...
      false
      
        
      
      
        ...
      
      
        ...
        
      
      
        ...
        
      
      ...
    
    

    You must then pass the otherMails claim out from the LocalAccountSignUpWithLogonEmail technical profile that is invoked to register a local account:

    
        ...
        
            ...
            
        
    
    

    When writing a social account: The otherMails claim is already created from the email claim and then persisted in the AAD-UserWriteUsingAlternativeSecurityId technical profile.

    You must then pass the otherMails claim out from the SelfAsserted-Social technical profile that is invoked to register a social account:

    
        ...
        
            ...
            
        
    
    

    When reading a local or social account: The otherMails claim is already read in the AAD-UserReadUsingObjectId, AAD-UserReadUsingEmailAddress, and AAD-UserReadUsingAlternativeSecurityId technical profiles.

    You must then pass the otherMails claim out from the LocalAccountDiscoveryUsingEmailAddress technical profile that is invoked to recover a local password:

    
        ...
        
            ...
            
        
    
    

    To issue the otherMails claim as emails from the sign-up/sign-in and password reset policies: You must add the otherMails claim as to the relying party policies:

    
        ...
        
            
                ...
                
            
        
    
    

提交回复
热议问题