![]() ![]() Grant your app ( App ID: 1) permissions to the web API scopes ( App ID: 2). The app registration process generates an application ID that uniquely identifies your web API. The registration exposes the web API permissions (scopes). ![]() The web API registration enables your app to call a protected web API. The app registration process generates an application ID, also known as the client ID, that uniquely identifies your app. The redirect URI is the endpoint to which the user is redirected after they authenticate with Azure AD B2C. During app registration, you specify the redirect URI. The single-page application (Angular) registration enables your app to sign in with Azure AD B2C. To enable your app to sign in with Azure AD B2C and call a web API, you must register two applications in your Azure AD B2C tenant: The refresh token is used to acquire a new access token. The access token allows the user to call protected resources, such as a web API. Stores the access token and refresh token in an in-memory cache for later use.Exchanges the authorization code for an ID token, access token, and refresh token.Upon successful sign-in, Azure AD B2C returns an authorization code to the app.The user signs up or signs in and resets the password, or signs in with a social account.The app starts an authentication request and redirects the user to Azure AD B2C.The user opens the app and selects Sign in.The sign-in flow involves the following steps: MSAL is a Microsoft-provided library that simplifies adding authentication and authorization support to Angular SPAs. This Angular sample uses MSAL Angular and the MSAL Browser. OpenID Connect (OIDC) is an authentication protocol built on OAuth 2.0 that you can use to securely sign in a user to an application. This article uses a sample Angular single-page application (SPA) to illustrate how to add Azure Active Directory B2C (Azure AD B2C) authentication to your Angular apps.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |