defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

PJAX + ADFS? #686

Open catmanjan opened 7 years ago

catmanjan commented 7 years ago

If a user becomes logged out, following PJAX links does not respect the 302 redirect to the SAML provider's login page - what solution are people using for this?

catmanjan commented 7 years ago

This is what I'm doing right now, but let me know if there's something built in to handle this (using MS MVC and ADFS)

$(document).on("pjax:end", function (event, options) {
    if (event.getResponseHeader("location")) {
        window.location = event.getResponseHeader("location");
    }
});