question

MunazzaOsama-2843 avatar image
0 Votes"
MunazzaOsama-2843 asked kdeman-8994 commented

error:Claim 'bearer' specified for the bearer token is not present in the available claims. while acquireing the access token with client credentials

i have b2c registered web app and using custom policies to sign in sign up i want to add a call to my secure web API to send user claims to this API. i have followed this documentation Secure your API and access through custom policy and using OAuth2 bearer authentication. for this i have registered another application(Client Application(daemon app) )to get the access token as the above documentation says, but i am not getting any bearer token in bearer token claim(access token). i am getting this following specific error(in jwt.ms) when running my policy

error:Claim "bearerToken" specified for the bearer token is not present in the available claims.

i need some guidance how to register my API in azure and what configuration i need to add in my asp.net core api code to get secured. and what do i need to add in the scope(expose API) while registering the api in azure. any help will be much appreciated.



azure-ad-b2c
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have the same question and issue. Did you find out how to do it ?

0 Votes 0 ·

0 Answers