Azure OAuth 2.0 authorization endpoint (v1) is redirecting to wrong URL

Yahya Shareef 0 Reputation points
2024-09-28T06:03:55.3166667+00:00

Hi, I’m Yahya Shareef. I’m trying to integrate OneDrive into my web app to allow users to save files in their OneDrive accounts. To get access, I was using the "customers" endpoint.

RubyCopy

https:

We want to accept all types of users, so we changed the settings to allow access for all user types.User's image

We also updated the endpoint to "common"

RubyCopy

https:

We are encountering an issue with a common endpoint. The redirect URI is taking us to the wrong path. We set the redirect URI to "http://localhost:5173/storage/one_drive", but it is redirecting to "http://localhost:5173/apis?code=T66xrIUED7-7bbodmmc8LyrcEPMuaDm2CnMaDdC_Dhh6u&state=X2ZFVjFsRGMtQ2RIZXZtM3ZoVHNBQ3ZSc3VSanZneVJfNFZhWVg4WjNjcg%3D%3D".

This problem has never occurred with the previous endpoint, "customers." What can I do to resolve this?

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
8,611 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,322 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,187 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.