> For the complete documentation index, see [llms.txt](https://docs.xibosignage.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xibosignage.com/developer/integrate/authentication.md).

# Authentication

Securing the CMS is of utmost importance and the API is secured behind an oAuth resource server which requires a valid `access_token` to be provided before access will be granted.

An `access_token` can be obtained from the CMS Authorization Server.

Once an `access_token` has been obtained it should be provided with every request using an Authorization header. The `access_token`’s are Bearer Tokens and should therefore be provided as such:

{% code title="HTTP Header" %}

```http
Authorization: Bearer <<access token>>
```

{% endcode %}

Client Information

Applications connecting to the CMS API must do so using a `clientId` and `clientSecret` which are available from the Applications page.

An application needs to be added to the CMS before an authorisation request can be processed. After adding an Application it can be granted access to two different types of credentials, called grant types.

Grant Types

The CMS supports two grant types:

* access\_code
* client\_credentials

The grant type requested must be supplied in the `grant_type` query parameter whenever requesting a token.

Applications added to the CMS should specify which grant types are allowed to use those client credentials. The `client_credentials` grant is typically used for machine-to-machine communication, whereas the `access_code` grant type is used to authorise a user.

Authorization Server

The CMS authorization server is used to obtain an `access_token` and can be found at `/api/authorize`. The authorization server supports two methods:

* `/api/authorize/` initiate the `access_code` grant
* `/api/authorize/access_token` obtain a token

Links:

* Authentication: <https://account.xibosignage.com/docs/developer/cms-api/auth#content-authentication>
* Client Information: <https://account.xibosignage.com/docs/developer/cms-api/auth#content-client-information>
* Grant Types: <https://account.xibosignage.com/docs/developer/cms-api/auth#content-grant-types>
* Authorization Server: <https://account.xibosignage.com/docs/developer/cms-api/auth#content-authorization-server>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.xibosignage.com/developer/integrate/authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
