OpenID Connect callback
curl --request GET \
--url https://app.trustivan.com/api/v1/auth/sso/oidc/callbackimport requests
url = "https://app.trustivan.com/api/v1/auth/sso/oidc/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trustivan.com/api/v1/auth/sso/oidc/callback', 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/oidc/callback"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}OpenID Connect callback
Accepted only when it belongs to a flow this server began IN THIS BROWSER, proved by a signed HttpOnly cookie carrying the state, the provider and the PKCE verifier. Without that binding an attacker could complete a flow with their own assertion in the victim’s browser.
The session lands in HttpOnly cookies. No token reaches the URL or the response body.
GET
/
auth
/
sso
/
oidc
/
callback
OpenID Connect callback
curl --request GET \
--url https://app.trustivan.com/api/v1/auth/sso/oidc/callbackimport requests
url = "https://app.trustivan.com/api/v1/auth/sso/oidc/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trustivan.com/api/v1/auth/sso/oidc/callback', 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/oidc/callback"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Response
302
On success, a redirect to the dashboard with session cookies set.
On failure, no session and a redirect to the dashboard's sign-in
with a fixed code: /auth/login?sso_error=restart when the flow
could not be verified, sso_error=failed when the assertion or
the login policy was refused. Which check failed is logged and
audited, never sent.