AD B2C - Update userProfile without asking Login

Manuel Heye 1 Reputation point
2022-09-13T06:39:51.053+00:00

I'm working with AD b2c, I have created a userFlow for editing the user profile.

When entering the edit flow, the user always needs to re-login...
Query params:

        'p' => self::EDIT,  
        'client_id' => $this->azureAdConnector->getClientId(),  
        'redirect_uri' => $this->router->generate('website_azure_login_check', [], UrlGeneratorInterface::ABSOLUTE_URL),  
        'scope' => 'openid',  
        'response_type' => 'id_token',  
        'response_mode' => 'form_post',  
        'ui_locales' => $locale->getLanguage(),  
        'state' => $locale->toString(). '-edit',  

How can i force to skip the login?

Greetings Manuel

@AmanpreetSingh-MSFT

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,536 Reputation points Moderator
    2022-09-13T06:56:03.58+00:00

    Hello @Manuel Heye and thanks for reaching out. In order to skip re-login please add the query param prompt=none to your authorization URL. E.g.

       'p' => self::EDIT,  
       'client_id' => $this->azureAdConnector->getClientId(),  
       'redirect_uri' => $this->router->generate('website_azure_login_check', [], UrlGeneratorInterface::ABSOLUTE_URL),  
       'scope' => 'openid',  
       'response_type' => 'id_token',  
       'response_mode' => 'form_post',  
       'ui_locales' => $locale->getLanguage(),  
        'state' => $locale->toString(). '-edit',  
       'prompt' => 'none'  
    

    Also, ensure SSO configuration is not suppressed.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.