Tokens para acceso personal
Nota: Urgente de Traducir. ¡ Anímese a traducir esta muy importante página !. ( y otras páginas muy importantes que urge traducir)
¿Qué son los tokens para acceso personal?
¡Nueva característica
en Moodle 5.3 !
Un token para acceso personal permite que una aplicación o script que utilice se conecte a la nueva plataforma de Moodle REST API a nombre y en representación de usted. Cada token tiene una fecha de caducidad y uno o varios ámbitos que limitan sus posibilidades de acción. El token opera dentro de los permisos que ya tienes en Moodle.
| Advertencia: Cualquiera que tenga su token puede realizar cualquier acción que usted pueda llevar a cabo dentro de sus ámbitos de alcance; por tanto, mantenga sus tokens en privado y elimine aquellos que ya no utilice. |
¿Cómo creo un token?
- Go to User menu > Preferences > User account > Personal access tokens.
- Click Create token.
- Enter a Name and, if you like, a Description, so you can recognise the token later.
- Choose an Expiry date: 7 days, 1 month (the default), 2 months, 3 months or 1 year.
- Select at least one scope. Each scope shows what it allows.
- Click Create token.
You can't change these settings after the token is created.

¿Cómo administro mis tokens?
The Personal access tokens page lists all your tokens, with their scopes, status, the date they were created, the date they're valid until, and when and from which IP address they were last used.

- A warning icon appears next to Valid until when a token expires within 3 days.
- To stop using an active token, click Revoke. The token stops working straight away and is removed from your list.
- An expired token shows the status Expired. Click Delete to remove it from your list.
If you need a token again after it expires, create a new one.
¿Quién puede crear tokens?
De forma predeterminada, cualquier Usuario autenticado puede crear tokens de acceso personal. Los administradores pueden restringir esto eliminando la capacidad moodle/api:createtoken.
Vea también
- REST API tokens
- OAuth 2 clients
- Claves de seguridad: tokens for the existing web services
- Personal access tokens demo (video by Andrew Lyons)