# Custom SSO methods

Whenever connecting Chamilo for Single Sign On to a third-party solution that doesn't offer compatibility with any of the supported methods, you will want to check main/auth/sso/ and "extend" (in PHP) the sso.class.php (like the example for Drupal).

These files contain explanations of what you need to add to your database to support the custom method, and how you need to call it.

If you miss inspiration for your side of the SSO (third-party solution), you can check the [Drupal-Chamilo project](https://www.drupal.org/project/chamilo) code here: <http://cgit.drupalcode.org/chamilo/tree/chamilo.module#n42>

Finally, you might need to check in main/inc/local.inc.php for the "sso" term to find where it all gets managed in the Chamilo login process.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chamilo.org/1.11.x/developer-guide/plugins/custom_sso_methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
