SAP b1 and Microsoft 365 issue

IT team 0 Reputation points
2023-09-25T09:45:20.3166667+00:00

I have SAP b1 hosted on azure.

when I created an application to connect sap to 365 one drive I got this error.

AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,835 questions
SAP HANA on Azure Large Instances
SAP HANA on Azure Large Instances
Microsoft branding terminology for an Azure offer to run HANA instances on SAP HANA hardware deployed in Large Instance stamps in different Azure regions.
119 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
828 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,381 Reputation points
    2023-09-26T14:00:04.7366667+00:00

    Hi @IT team

    Thank you for reaching out to the Microsoft Q&A platform.

    The error message "AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption" indicates that there is an issue with the authentication process between your SAP B1 application and Microsoft 365 OneDrive.

    This error occurs when the authorization code that is used to authenticate the user is not properly secured with a Proof Key for Code Exchange (PKCE). PKCE is a security feature that is used to prevent certain types of attacks, such as code injection attacks.

    To resolve this issue, you will need to modify your SAP B1 application to use PKCE when authenticating with Microsoft 365 OneDrive. You can do this by following the steps outlined in the "Add PKCE to your application" section of the Microsoft documentation.

    Once you have added PKCE to your application, you should be able to authenticate with Microsoft 365 OneDrive without encountering the "AADSTS9002325" error. If you continue to experience issues, you may want to contact Microsoft support for further assistance.

    <If this does answer your question, please accept it as the answer as a token of appreciation.>

    0 comments No comments