> This page is for MVS Auth.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mvscloud.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mvscloud.com/_mcp/server.

# Sign In With SSO

POST https://c-auth.mvscloud.com/api/auth/sign-in/sso
Content-Type: application/json

This endpoint is used to sign in with an SSO provider. It redirects to the provider's authorization URL

Reference: https://docs.mvscloud.com/mvs-auth/central-auth-api/sso/sign-in-with-sso

## Authentication

- `Authorization` header (bearer token, required) — Bearer token authentication

## Request

### Body (application/json)

This endpoint expects an object.

- `callbackURL` (string, required) — The URL to redirect to after successful sign-in.
- `email` (string, optional) — The email address to sign in with. Used to resolve the provider via the email domain; optional if providerId, domain, or organizationSlug is provided.
- `organizationSlug` (string, optional) — The slug of the organization to sign in with.
- `providerId` (string, optional) — The ID of the provider to sign in with. Can be provided instead of email.
- `domain` (string, optional) — The email domain of the provider. Can be provided instead of email.
- `errorCallbackURL` (string, optional) — The URL to redirect to if the sign-in flow fails.
- `newUserCallbackURL` (string, optional) — The URL to redirect to after sign-in if the user is newly registered.
- `scopes` (list of string, optional) — Scopes to request from the provider.
- `loginHint` (string, optional) — Login hint to send to the identity provider (e.g., email or identifier). If supported, sent as 'login_hint'.
- `additionalParams` (map from string to string, optional) — Extra query parameters to append to the OIDC provider authorization URL. RFC 6749 reserved keys (state, client_id, redirect_uri, response_type, code_challenge, code_challenge_method, scope) are rejected. Not supported for SAML providers.
- `requestSignUp` (boolean, optional) — Explicitly request sign-up. Useful when disableImplicitSignUp is true for this provider.
- `providerType` (enum, optional) — The provider protocol to sign in with.
  - Allowed values: `oidc`, `saml`

## Response

### 200

Authorization URL generated successfully for SSO sign-in

- `url` (string, required) — The authorization URL to redirect the user to for SSO sign-in
- `redirect` (boolean, required) — Indicates that the client should redirect to the provided URL

## Errors

### 400 Bad Request Error

Bad Request. Usually due to missing parameters, or invalid parameters.

- `message` (string, required)

### 401 Unauthorized Error

Unauthorized. Due to missing or invalid authentication.

- `message` (string, required)

### 403 Forbidden Error

Forbidden. You do not have permission to access this resource or to perform this action.

- `message` (string, optional)

### 404 Not Found Error

Not Found. The requested resource was not found.

- `message` (string, optional)

### 429 Too Many Requests Error

Too Many Requests. You have exceeded the rate limit. Try again later.

- `message` (string, optional)

### 500 Internal Server Error

Internal Server Error. This is a problem with the server that you cannot fix.

- `message` (string, optional)

## Examples

**Request**

```json
{
  "callbackURL": "string"
}
```

**Response**

```json
{
  "url": "string",
  "redirect": true
}
```

**SDK Code**

```python
import requests

url = "https://c-auth.mvscloud.com/api/auth/sign-in/sso"

payload = { "callbackURL": "string" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://c-auth.mvscloud.com/api/auth/sign-in/sso';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"callbackURL":"string"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://c-auth.mvscloud.com/api/auth/sign-in/sso"

	payload := strings.NewReader("{\n  \"callbackURL\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://c-auth.mvscloud.com/api/auth/sign-in/sso")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"callbackURL\": \"string\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://c-auth.mvscloud.com/api/auth/sign-in/sso")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"callbackURL\": \"string\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://c-auth.mvscloud.com/api/auth/sign-in/sso', [
  'body' => '{
  "callbackURL": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://c-auth.mvscloud.com/api/auth/sign-in/sso");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"callbackURL\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["callbackURL": "string"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://c-auth.mvscloud.com/api/auth/sign-in/sso")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```