login.php
<html>
try {
const credential = await navigator.credentials.store(new FederatedCredential({
rp: "https://springer.com",
user: {name: "David", picture: "..."}
}));
// do stuff
window.location.href = "https://springer.com/?saml_resonse?" + ...;
} catch (e) {
alert("oops");
}
</html>
logout.php
<html>
try {
const serviceProviders = [{
url: "https://springer.com/logout.php"
}];
const sessionDuringFilter = () = {};
FederatedCredential.logoutRps(serviceProvider.filter(sessionDurationFilter));
} catch (e) {
alert("oops");
}
</html>