Fix Personal OneDrive Sign-In Redirecting to GitHub on iOS
Question details
The user is unable to complete the sign-in process for Microsoft applications using a personal account linked to GitHub due to a broken redirect loop.

- Product
- Microsoft OneDrive, Word, OneNote
- Device & OS
- iOS / iPadOS
- Scenario
- Attempting to sign in to Microsoft applications on Apple mobile devices using a personal Microsoft account linked with GitHub as the identity provider.
- Observed behavior
- The authentication process redirects to GitHub and succeeds, but the application fails to receive the redirect payload, leaving the user on the Microsoft account webpage instead of logging them into the app.
Verify that your default iOS browser is set to Safari and clear your browser cache, as third-party browsers sometimes block the callback URLs required to return you to the Microsoft app after authenticating with GitHub.
Update Device Software and Reset Network Settings
Outdated operating systems or corrupted network configurations can break the authentication callback between the iOS browser and the Microsoft application.
Authentication redirects on iOS rely on deep links and Universal Links. If your iOS version or the Microsoft app is outdated, these links may fail to trigger, leaving you stranded on the web page instead of passing the login token back to the app.
Navigate to 'Settings' > 'General' > 'Software Update' on your device. If an update is available, tap 'Download and Install' to ensure your system's URL handling is up to date.
Open the 'App Store', tap your profile icon at the top right, and scroll down to the 'Available Updates' section. Tap 'Update' next to OneDrive, Word, OneNote, and any other affected Microsoft apps.
Go to 'Settings' > 'General' > 'Transfer or Reset iPhone/iPad' > 'Reset' > 'Reset Network Settings'. Note that this will erase saved Wi-Fi networks and passwords, cellular settings, and VPN configurations.

Unlink GitHub and Set a Microsoft Password
Bypass the external identity provider redirect entirely by temporarily unlinking GitHub and signing in with a standard Microsoft account password.
Verify Safari Redirect Preferences and Contact Support
Ensure that your browser is not blocking the cross-site tracking or redirects necessary for the authentication token to reach the app.
Bypass Login Issues with WPS Office on iOS
Tired of dealing with complex authentication loops and redirect failures in Microsoft apps? Switch to WPS Office for iOS. It's a free, lightweight, and powerful alternative that offers seamless local and cloud file management without frustrating login errors.
- 1. Download WPS Office: Search for WPS Office in the iOS App Store and tap 'Get' to download the application for free.
- 2. Connect Your Cloud Storage: Open WPS Office, navigate to the 'Cloud' tab, and link your preferred storage providers directly without redirect loops.
- 3. Start Editing Documents: Tap on any document to open it and begin editing immediately with full Microsoft format compatibility.

Frequently Asked Questions
Why does my Microsoft account redirect to GitHub during sign-in?
Microsoft allows users to link personal accounts with external identity providers like GitHub for seamless sign-in. When you enter an email associated with GitHub, the system redirects you to GitHub's servers to authenticate.
Can I permanently unlink my GitHub account from my Microsoft account?
Yes. You can log into your Microsoft account dashboard from a web browser, navigate to 'Advanced security options', and remove GitHub from your list of identity providers. You will need to set a standard password if you haven't already.
Does this redirect issue affect work or school Microsoft accounts?
Typically, no. This specific issue involves personal Microsoft accounts that have been manually linked to a GitHub profile. Work or school accounts use organizational Azure Active Directory authentication.




