# Third-Party Login

Some applications need to authenticate with intratool in a standard web environment — for example to implement single sign-on on a device.

The login mechanism described here uses a token associated with the user to perform a browser login. The response sets the same cookies that a manual login would set, so the user becomes logged in on the device where the route was called.

This feature is also referred to as "Auto Login URLs".

## Login By Token

There are currently two ways to perform a token-based login:

### Login By User Login Token

[UserLoginTokens](/api-reference/user-login-tokens.md) are short-lived, user-specific tokens that allow a one-time login. Use them like this:

<mark style="color:green;">`GET`</mark> `https://{tenant}.intratool.de/login/token/{userLoginToken}`

Calling this URL logs in the associated [User](/api-reference/users.md) and redirects to the configured default route.

A [UserLoginToken](/api-reference/user-login-tokens.md) can be used only once or until it expires, whichever comes first.

### Login By Access Token

The long-lived access tokens used for [API authorization](/introduction/authorization/authorize.md) can also be used as login tokens by calling the same route with the access token:

<mark style="color:green;">`GET`</mark> `https://{tenant}.intratool.de/login/token/{accessToken}`

This logs in the associated [User](/api-reference/users.md) and redirects to the configured default route.

An access token is **not** revoked when used for login; it remains valid until its normal expiration.


---

# 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.api.intratool.de/introduction/authorization/third-party-login.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.
