Hello @CH Vamsi Krishna,
I see you have shared your solution on this issue. I would like to repost this as an Answer to help other community members to find your solution on how to configure Azure AD B2C Custom Policies to dynamically generate a bearer or access token using a token endpoint.
Solution shared by @CH Vamsi Krishna.
In this post, I will share how to configure Azure AD B2C Custom Policies to dynamically generate a bearer or access token using a token endpoint. This is particularly useful for scenarios where you need to authenticate with a third-party system or API and retrieve dynamic access tokens.
Why This is Useful
- Simplifies API authentication by automating token retrieval.
- Makes it easy to integrate with systems requiring OAuth 2.0 authentication.
- Enhances the capabilities of Azure AD B2C Custom Policies for advanced scenarios.
Key Concepts
- Claims and Technical Profiles: Define claims to hold required values (e.g.,
client_id
,client_secret
) and use a Technical Profile to call the token URL. - Service URL: Points to the OAuth token endpoint, typically in the format: `https://login.microsoftonline.com/In this post, I will share how to configure Azure AD B2C Custom Policies to dynamically generate a bearer or access token using a token endpoint. This is particularly useful for scenarios where you need to authenticate with a third-party system or API and retrieve dynamic access tokens. Why This is Useful
- Simplifies API authentication by automating token retrieval.
- Makes it easy to integrate with systems requiring OAuth 2.0 authentication.
- Enhances the capabilities of Azure AD B2C Custom Policies for advanced scenarios.
- Claims and Technical Profiles: Define claims to hold required values (e.g.,
client_id
,client_secret
) and use a Technical Profile to call the token URL. - Service URL: Points to the OAuth token endpoint, typically in the format: `https://login.microsoftonline.com/