-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't login to SharePoint account on Brave #36450
Comments
Just to give an update here, setting Brave's User Agent to be a non-Chromium one i.e. Firefox's or Safari's seems to fix the issue. |
I believe I have identified the root cause of this issue. When Sharepoint initiates the authentication, it sets a cookie (from
Google Chrome reacts to this as either clearing first, then setting it, or clearing the partitioned cookie type and setting the non-partitioned one, while Brave just clears is. As a result, post-authentication when the authentication provider redirects back to default.aspx, the cookie is missing and Sharepoint goes into a tailspin. |
I'll take a look in a bit, but this does seem likely, we noticed some discrepancies in how cookies were being sent in the request for default.aspx between Brave/Chrome/others. |
Yeah. It looks like for Google Chrome if does set the cookies the same as for Brave (it probably looks at the user agent and goes "ah, Chromium, it can handle non-RFC6267-compliant cookie headers"), while for Firefox, it only sets the cookie, it doesn't clear the CHIP cookie. That's how I found I could work around the bug by spoofing Firefox. |
Same issue here (Linux OS) started yesterday, but feels more like a SharePoint issue. In another profile with another Microsoft account, no issue, so it's a bit weird, unless it's because I refreshed an authentication token yesterday on the broken profile. I also tested on my Android device as well and ran into the same issue. |
@dovecode #36450 (comment) catch looks correct to me. For Brave (and FF), all cookies are partitioned, so a cookie being marked as Partitioned is a no-op, but because of that if you set the value of a cookie I can't think of why SharePoint needs to do both clearing for the brave/brave-core#22391 will fix this. |
The above requires |
Same issue here with sharepoint |
I hope Brave gets this fixed soon. I HATE M$ Edge! |
Me too, i'm having with this issue. |
I'm also seeing the same issue. |
We rolled a fix for the issue via Griffin. It should be applied after a browser restart. To check if it's there, please open |
Also having this issue. Started today on my Mac only using Brave, however Brave on Kali Linux is still working fine. |
Can confirm that this fixed the issue for me! |
Awesome, it was fixed |
Same issue for me. |
Restart your browser/computer |
Verified the below with
Per brave/brave-core#22391 (comment), verified the test cases from https://dev-pages.brave.software/storage/ephemeral-storage.html:
cc @kjozwiak for the remaining check on macOS |
Verified on
STEPS:
ACTUAL RESULTS:
|
Verified on
|
Verification
Reproduced the issue in
verified the test cases from https://dev-pages.brave.software/storage/ephemeral-storage.html for Brave pre-1.64.31+ with Chromium storage partitioning.
|
Verification PASSED on
Visited |
Verification PASSED on
Using the STR/information detailed via #36450 (comment), ensured that logging into Also went through https://dev-pages.brave.software/storage/ephemeral-storage.html and verified that all the tests passed as per: Using
|
It seems to be fixed without Bave update. Mine is 1.63.169. |
Can confirm: upgrading to 1.63.169 fixes the issue. Thanks for the quick solution! |
Nah, 1.63.169 is the upgrade that works around MS's non-RFC6267-compliant cookies. I can confirm that Sharepoint still sends two Set-Cookie headers with the same cookie name. |
Mine works now, but I don't know what changed.
Thanks!
***@***.***<http://www.dallascitynews.net/>
Mike McDougall
Sr. Systems Admin
City of Dallas | DallasCityNews.net
CIS
1500 Marilla, 3ES
Dallas, TX 75201
O: 214-670-3466
***@***.******@***.***>
***@***.*** <https://twitter.com/CityofDallas> ***@***.*** <https://www.facebook.com/DallasCityHall/> ***@***.*** <https://www.youtube.com/user/dmcclel>
**OPEN RECORDS NOTICE: This email and responses may be subject to the Texas Open Records Act and may be disclosed to the public upon request. Please respond accordingly.**
From: Nicolai Nielsen ***@***.***>
Sent: Friday, March 8, 2024 7:56 AM
To: brave/brave-browser ***@***.***>
Cc: McDougall, Mike ***@***.***>; Comment ***@***.***>
Subject: Re: [brave/brave-browser] Can't login to SharePoint account on Brave (Issue #36450)
External Email!
It seems to be fixed without Bave update. Mine is 1.63.169. Maybe MS did something...
Nah, 1.63.169 is the upgrade that works around MS's non-RFC6267-compliant cookies. I can confirm that Sharepoint still sends two Set-Cookie headers with the same cookie name.
-
Reply to this email directly, view it on GitHub<#36450 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH4RZMQQNWUFI3Z53EHKIODYXG7PLAVCNFSM6AAAAABD654IESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVG4ZTQOBYGY>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
CAUTION: This email originated from outside of the organization. Please, do not click links or open attachments unless you recognize the sender and know the content is safe.
|
I still randomly have this issue. The workaround I found was clearing cookies and other site data, which is not practical as I need to log into all my accounts again. The error I get when trying to load a company Sharepoint page is: The webpage at might be temporarily down or it may have moved permanently to a new web address. Running macOS Sonoma 14.4.1 (this issue was prevalent ever since I upgraded to Ventura) and Brave Version 1.65.126 Chromium: 124.0.6367.118 (Official Build) (arm64) |
Description
Brave goes into a long redirect loop when trying to login to https://unomail.sharepoint.com/. This started happening on ~Feb 28 2024, and presumably because of a website auth flow change. It does not look related to Shields or privacy protections, the breakage happens even with the following:
https://unomail.sharepoint.com/ works fine on Safari, FF, Chrome, DDG. Brave only has troubles with SharePoint, regular login via login.microsoftonline.com directly works fine.
Community reports:
Steps to Reproduce
Actual result:
There's a number of redirects between unomail.sharepoint.com and login.microsoftonline.com
The network activity looks like this:
https://login.microsoftonline.com:443/f1f4be86-d048-47e8-aa26-15b01dcdb13d/oauth2/authorize?client%5Fid=...
Expected result:
Either logged in or if there's no SharePoint account, a page that says that your account
can't be found in the unomail.sharepoint.com directory
.Reproduces how often:
Always
Brave version (brave://version info)
1.65.6 Chromium: 122.0.6261.43 (Official Build) nightly (arm64)
Happens on all Brave versions
The text was updated successfully, but these errors were encountered: