> Source: https://docs.cyberelements.io/bastion/4.7/pt/Usage/Administration/AdminConsole/MainWorkPanel/DirectAccess/DirectAccessTokens/

# Direct access tokens

A **direct access token** spares a user from typing their domain login and password to open an RDP or VNC [direct access](https://docs.cyberelements.io/bastion/4.7/pt/Usage/Administration/AdminConsole/MainWorkPanel/DirectAccess/DirectAccess/) session. This screen inventories them and allows them to be **revoked**; it creates none.

![](https://docs.cyberelements.io/bastion/4.7/img/cyberelements/CYE_AdminConsole_DirectAccessTokens_Module.png)

## Token creation

A token is requested by the user, who generates it from the user portal, under the [RDP without agent record contracts](https://docs.cyberelements.io/bastion/4.7/pt/Usage/Administration/AdminConsole/MainWorkPanel/DirectAccess/RdpNoAgentContracts/) that allow them to, and that is also where they can renew it or delete it themselves.

The console serves two purposes here: viewing the existing tokens and withdrawing those that must no longer serve.

> **Personal token**
>
> A token is valid for one user, in one [authentication domain](https://docs.cyberelements.io/bastion/4.7/pt/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/AuthenticationDomains/), and for one specific application, or for all the applications their contracts open to them. One user may therefore hold several, one per application, and the *Application* column tells them apart.

## Scope of a token

The token stands in for both the domain login and the password. When it is tied to an application it also designates the target: the value carried by the token prevails over whatever the user may have typed.

It does not dispense with the rest of the connection: if the domain requires a **one-time password**, it is requested just as in an ordinary connection.

> **Contracts taken into account**
>
> In a token connection, only the contracts that **allow tokens** count. A user covered by two contracts, only one of which allows them, will therefore reach fewer applications with their token than with their password, with no message to warn them: the missing applications behave as though they had never been granted.

## Expiry date calculation

The expiry date is entered on no screen: it is **derived from the contracts** at the moment the user requests the token, from the contracts that allow tokens and cover the target application.

- If one of them sets a duration of **zero days**, the token **never** expires.
- Otherwise the **longest** duration among the contracts concerned wins.

> **Tokens already issued**
>
> The expiry date is frozen at issue. Shortening a contract's validity, or withdrawing its permission to use tokens, does not retract existing tokens: they keep opening sessions until their date. Only revoking them, on this screen, ends them. The user, for their part, can recompute the date by renewing their token from the portal.

> **Deletion of expired tokens**
>
> Expiry is not watched for: it is noticed on use. At the first connection presented with a lapsed token, the connection is refused and the token is **deleted**. A list that empties itself has not necessarily been purged.

## Token revocation

Revocation is immediate and final: the user will have to request a new one from the portal. It applies to a lost workstation or to an access that must stop ahead of time. To suspend an access as a whole, disabling the contract is preferable.

## Limits

- The list is consulted **one domain at a time**, and there is no overall view. Finding a user's tokens means knowing which domain they are declared in.
- **SAML domains** are not offered, direct access not accepting them.
- This screen neither creates nor renews any token, and never displays its value.
- Nor does it show which contract a token was issued under.

---

The column, filter and deletion window detail is in the [module reference](https://docs.cyberelements.io/bastion/4.7/pt/Usage/Reference/AdminConsole/RdpNoAgentContracts/).
