Will Entra ID generate session tokens when user logsin through web app

Likitha Bommasani 60 Reputation points
2024-10-29T23:37:25.6333333+00:00

Is it possible to integrate Entra ID for automatic user registration when a user signs up on my application’s registration page? Specifically, I’d like the user to be added to Entra ID at the time of registration so that Entra ID can handle authentication in future logins. Additionally, upon successful authentication during subsequent logins, Entra ID should generate a session token for the user. Is this functionality supported, and what are the recommended steps to implement it?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Goutam Pratti 6,170 Reputation points Microsoft External Staff Moderator
    2024-11-05T07:56:15.1633333+00:00

    Hello @Likitha Bommasani ,

    Thank you for reaching out Microsoft Q&A.

    By default, integrating Entra ID for automatic user registration during an application's sign-up process is not possible, as Entra ID primarily handles secure authentication, not sign-up flows. It is designed specifically for authentication and authorization, verifying user identities and issuing tokens to allow secure access to applications. Its main purpose is to ensure that only authorized users, who are already present in Entra ID, can access your application. To onboard a new user, you must first create the user in Entra ID only then will they be able to access your application.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Regards,
    Goutam Pratti.


  2. Goutam Pratti 6,170 Reputation points Microsoft External Staff Moderator
    2024-11-08T18:47:27.7733333+00:00

    Hi @Likitha Bommasani ,

    Thank you for your patience! I apologize for previous misunderstanding.

    Yes, Entra ID can support automatic user registration and authentication through self-service sign-up user flows with Azure B2B collaboration. By configuring self-service sign-up within a B2B context, new users can register themselves through your application’s registration page, and Entra ID can automatically add them to the directory. This setup allows Entra ID to manage authentication for future logins, generating a session token upon successful authentication.

    Microsoft Entra ID serves as the default identity provider for self-service sign-up, enabling users to register using their Entra account by default. Additionally, within your self-service sign-up user flows, you can configure options for other identity providers, such as Google, Facebook, and Microsoft Account, as well as an email one-time passcode option for added flexibility.

    For more detailed guidance, follow the documentation: https://learn.microsoft.com/en-us/entra/external-id/self-service-sign-up-user-flow

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Regards, Goutam Pratti.


Your answer

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