I'm trying to implement the SAML SP-initiated flow. The docs say that I should set a cookie with a nonce value before redirecting to the bookmark url. How do I do that? Specifically, I tried making an html file that sets the cookie value and redirects - however, when I go back to the page, the cookie is not updated. I think the reason is that the cookie is updating in a different domain compared to the landing page. Here's my template html for reference:
```
<!DOCTYPE html>
<html lang="en">
<form id="RedirectForm"
method="get"
action="{{redirect_uri}}">
</form>
<script>
window.onload = function () {
document.cookie = "{{cookie_key}}={{cookie_value}}";
document.querySelector("#RedirectForm").submit();
}
</script>
</html>
```
I'm trying to implement the SAML SP-initiated flow. The docs say that I should set a cookie with a nonce value before redirecting to the bookmark url. How do I do that? Specifically, I tried making an html file that sets the cookie value and redirects - however, when I go back to the page, the cookie is not updated. I think the reason is that the cookie is updating in a different domain compared to the landing page. Here's my template html for reference:
```
<!DOCTYPE html>
<html lang="en">
<form id="RedirectForm"
method="get"
action="{{redirect_uri}}">
</form>
<script>
window.onload = function () {
document.cookie = "{{cookie_key}}={{cookie_value}}";
alert(document.cookie);
document.querySelector("#RedirectForm").submit();
}
</script>
</html>
```
How to set a cookie using SSO extension form?
I'm trying to implement the SAML SP-initiated flow. The docs say that I should set a cookie with a nonce value before redirecting to the bookmark url. How do I do that? Specifically, I tried making an html file that sets the cookie value and redirects - however, when I go back to the page, the cookie is not updated. I think the reason is that the cookie is updating in a different domain compared to the landing page. Here's my template html for reference:
```
<!DOCTYPE html>
<html lang="en">
<form id="RedirectForm"
method="get"
action="{{redirect_uri}}">
</form>
<script>
window.onload = function () {
document.cookie = "{{cookie_key}}={{cookie_value}}";
alert(document.cookie);
document.querySelector("#RedirectForm").submit();
}
</script>
</html>
```