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.
6,742 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,034 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,099 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Golden Harvesting AGRO 0 Reputation points
    2024-09-28T07:31:29.8+00:00

    image


    0 comments No comments

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.