Found the issue. It was in Bearer token: it was taken from a file and it ended with a crlf char.
Removed that char solved the issue.
Probably Microsoft changes something on their side
Best regards
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear support,
I've developed an application to use graph api to authenticate over AAD.
It worked for months but now it returns me "StatusCode: BadRequest - Reason: Bad Request"
Where can I see which is the problem with my request?
On client application side I have no more informations on this error.
Application has been developed with these steps:
Token is then passed to another application that perform another request (GetHttpContentWithToken (copied from example)) with scopes "user.read"
Thank you
Found the issue. It was in Bearer token: it was taken from a file and it ended with a crlf char.
Removed that char solved the issue.
Probably Microsoft changes something on their side
Best regards
Hi @Alberto Zumiani , what version are you using, 1.0 or beta? Have you changed anything recently like policies or subscription types? Is there any issue with your subscription? Have you followed and documents or threads to help resolve the issue? From the troubleshooting guide:
Based on an organization's CA policies, a user accessing Microsoft Graph resources via your app might be challenged for additional information that is not present in the access token your app originally acquired. In this case, your app receives a 400 with an interaction_required error during access token acquisition or a 403 with insufficient_claims error when calling Microsoft Graph. In both cases, the error response contains additional information that can be presented to the authorize endpoint to challenge the user for additional information (like multi-factor authentication or device enrollment).>
Since it has been working for months I don't think there's anything wrong with your implementation unless you recently changed or added something. Please let me know if anything above helps you. If not I will continue looking into this.
Thank you,
James
Dear James,
I've changed nothing recently. Strange thing is that if I use same Bearer token on Postman from my PC it works like a charm. If I use that from linux sever it returns BadRequest error. I really cannot understand what is wrong with my request.
I'm using v1.0