I am getting this error when trying to generate AAD token from clientid and certificate using below code.
Error: "AADSTS50012: Client is public so a 'client_assertion' should not be presented Native app"
Code: await context.AcquireTokenAsync(resource, assertionCert);
AADSTS700025: Client is public so neither 'client_assertion' nor 'client_secret' should be presented. Can someone assist? Post the command and your app registration config and somebody might be able to.
AADSTS50012: Invalid client secret is provided AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided I’ve been fighting with this error for the past week, and still haven’t found a solution for it.
Client assertion contains an invalid signature; AADSTS50013: InvalidAssertion - Assertion is invalid because of various reasons - The token issuer doesn't match the api version within its valid time range -expired -malformed - Refresh token in the assertion is not a primary refresh token. AADSTS50014
AADSTS901002: The 'resource' request parameter is not supported. InvalidEmailAddress - The supplied data isn't a valid email address. The email address must be in the format [email protected]. InvalidUriParameter - The value must be a valid absolute URI.
I found the the resolution for this.
I was registering my app as Native app in AAD. App should have been registered as WebApp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With