Hi @CH Vamsi Krishna , you can use the REST-AcquireAccessToken
technical profile to obtain an access token using the client credentials flow. This technical profile will generate an access token that can be used to call your REST API.
You can then use the bearerToken
output claim in your REST technical profile to call your REST API.
More information here: https://stackoverflow.com/questions/69507949/how-to-get-oauth2-bearer-access-token-in-b2c-custom-policy-to-send-claims-to-my
You can also use Azure APIM to generate the access token for you. You can configure APIM to use Azure AD as the authentication provider and then use the openid
scope.
Please let me know if you have any questions and I can help you further.
Best,
James