---
title: "Finish SAML2 SSO login"
method: POST
path: "/sso/saml2/finish"
tags: ["SSO"]
---

# Finish SAML2 SSO login

`POST /sso/saml2/finish`

Finishes SAML2-based SSO login by validating the SAML response against the pending SSO session and resolving/provisioning a user.

## Request body

- SsoSaml2FinishReq
  - `samlResponse` string, required
  - `relayState` string, required
  - `ssoNonce` string, required

## Response `200`

SSO finish succeeded.

- SsoSaml2FinishRsp
  - `projectID` string, required — ID of project
  - `userID` string, required — ID of the user
  - `identifier` string, required
  - `invitationToken` string

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/corbado/apis/corbado-backend-api.md) · [All operations](https://skmtc.dev/corbado/apis/corbado-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corbado/corbado-backend-api/revisions/1f6143efe426/schema)
