this post was submitted on 16 Aug 2025
378 points (99.0% liked)

Programmer Humor

26673 readers
1605 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] ace@lemmy.ananace.dev 48 points 1 month ago* (last edited 1 month ago) (5 children)

I actually recently added the Microsoft logout page to µblocks domain filter at work, since it would every now and then trigger a logout the very first page load after I'd log in to the email there.

This has also somehow caused a bunch of other AD-connected systems to suddenly behave a lot better when it comes to session termination.

 

Edit: Since people were asking for it, this is what you need to add to the "My filters" tab in your UBO config;

||login.microsoftonline.com/common/oauth2/v2.0/logout^$document

This will prevent any requests from redirecting you to log out, timeouts etc will still invalidate your session.

[–] Isbjerg@feddit.dk 14 points 1 month ago

So, how do you do that exactly?

[–] AlecSadler@lemmy.blahaj.zone 4 points 1 month ago

Oh wow. So you just added the /logout endpoint itself or something else?

[–] grueling_spool@sh.itjust.works 1 points 1 month ago

WTAF. I was sceptical, but I've been using this all week and haven't once had the issue in the OP. Whereas previously I had to log in 2-3 times back to back every morning.

Any idea why this works?

[–] mogranja@lemmy.world 1 points 1 month ago (1 children)
[–] ace@lemmy.ananace.dev 2 points 1 month ago

Added an edit with the filter line