FearlessSolutions / ICTS

0 stars 0 forks source link

Spike: Research Integration with B2C Authentication #142

Open garrett-fearless opened 1 year ago

garrett-fearless commented 1 year ago

Description: Research is needed to determine how to integrate the authentication from B2C with the UI application. To be done in pair.

AC:

afknot commented 1 year ago

From ChatGPT...

Integrating authentication from Azure Active Directory B2C with a UI application involves the following steps:

  1. Create an Azure AD B2C tenant and register your UI application in it.
  2. Configure authentication settings in your UI application to use Azure AD B2C.
  3. Add the authentication code to your UI application to handle authentication requests.
  4. Customize the user interface to display the appropriate login and logout links based on the authentication status of the user.

Here is an overview of these steps:

  1. Create an Azure AD B2C tenant and register your UI application in it:

    • Go to the Azure portal and create an Azure AD B2C tenant.
    • Register your UI application in the B2C tenant and obtain a client ID and client secret.
  2. Configure authentication settings in your UI application to use Azure AD B2C:

    • In your UI application, configure the authentication settings to use Azure AD B2C as the authentication provider.
    • Specify the client ID and client secret obtained in step 1.
  3. Add the authentication code to your UI application to handle authentication requests:

    • In your UI application, add code to handle authentication requests from Azure AD B2C.
    • This code should handle redirects to the Azure AD B2C login page and return the authentication token to the UI application.
  4. Customize the user interface to display the appropriate login and logout links based on the authentication status of the user:

    • In your UI application, customize the user interface to display the appropriate login and logout links based on whether the user is authenticated or not.
    • Use the authentication token returned from Azure AD B2C to display user-specific information.

These are the high-level steps involved in integrating authentication from Azure AD B2C with a UI application. The specific implementation details will depend on the programming language and framework used in your UI application.