SAML assertion consumer service
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/sso/saml/acsimport requests
url = "https://app.trustivan.com/api/v1/auth/sso/saml/acs"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.trustivan.com/api/v1/auth/sso/saml/acs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/sso/saml/acs"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}SAML assertion consumer service
Where a SAML identity provider posts its assertion.
EXEMPT FROM CSRF, deliberately and narrowly. The IdP posts here from a form in the user’s browser, cross-site by definition: that is how SAML web browser SSO works, and no CSRF token can exist because the IdP has never seen one. The protection is different and stronger: the body is a SIGNED assertion, accepted only when it carries an InResponseTo matching a request ID from the signed flow cookie this server issued to this browser.
IdP-initiated SSO is refused: an unsolicited assertion has no browser-bound flow to check it against.
POST
/
auth
/
sso
/
saml
/
acs
SAML assertion consumer service
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/sso/saml/acsimport requests
url = "https://app.trustivan.com/api/v1/auth/sso/saml/acs"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.trustivan.com/api/v1/auth/sso/saml/acs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/sso/saml/acs"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Response
302
As for the OIDC callback: the dashboard with session cookies on
success, /auth/login?sso_error=restart|failed and no session on
failure.