Forum Discussion
OneDrive login loop with API
Hi Fantilyre,
Consider (double) checking the following:
Redirect URI:
Ensure that the redirect URI in your authorization URL precisely matches the one registered in your Azure app registration.App Registration:
Verify that your app is correctly registered in the Azure portal. The client ID used in the authorization URL should align with the Application (client) ID in your app registration.Permissions:
Confirm (double check) that the necessary permissions are granted in the Azure portal under "API permissions."
The permissions you listed (Files.ReadWrite, Files.ReadWrite.AppFolder, offline_access, openid, User.Read) should typically cover most OneDrive operations.
If you've reviewed all these aspects and the problem persists, consider using tools like Fiddler or Postman to capture HTTP requests and responses during the login process. This could offer more insights into the root cause.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)