> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/espanol/api-skyone-autosky/logon-plataforma.md).

# Logon Plataforma

El proceso de inicio de sesión (logon) del usuario en la plataforma **no** se realiza directamente a través de una llamada de API.

Este procedimiento se realiza a través de una llamada directa vía **HTTPS** (conexión segura) al dominio especificado con los parámetros de inicio de sesión.

Este modelo permite que todos los controles e interacciones con el usuario en su conexión sean realizados directamente por la plataforma Autosky. Procedimientos como la instalación de complementos (plugins) y otros controles podrán ser sugeridos y controlados por la plataforma.

## Estrutura de la URL de Logon

La URL está compuesta por la URL de inicio de sesión (proporcionada junto con el token de autenticación) y la información de usuario y contraseña.

### Parámetros

| Parámetro  | Obligatorio | Codificación | Descripción                                    |
| ---------- | ----------- | ------------ | ---------------------------------------------- |
| `auth`     | Sí          | Base64       | Credenciales en el formato `EMAIL:CONTRASENÑA` |
| `param`    | No          | Base64       | Parámetros de la aplicación                    |
| `back_url` | No          | Texto normal | URL de retorno                                 |

### Formato

```
https://meudominio.skyinone.net/usuario/autentica/?auth={BASE64}&param={BASE64}&back_url={URL}
```

## Ejemplos

### Antes de la conversión Base64

```
https://meudominio.skyinone.net/usuario/autentica/?auth=meuemail@dominio.com:MinhaSenha&param=123456789&back_url=https://www.meu-portal-acesso.com.br
```

### Después de la conversión Base64

```
https://meudominio.skyinone.net/usuario/autentica/?auth=bWV1ZW1haWxAZG9taW5pby5jb206TWluaGFTZW5oYQ==&param=MTIzNDU2Nzg5&back_url=https://www.meu-portal-acesso.com.br
```

## Cómo generar el Base64

### JavaScript

```javascript
const auth = btoa("meuemail@dominio.com:MinhaSenha");
// Resultado: "bWV1ZW1haWxAZG9taW5pby5jb206TWluaGFTZW5oYQ=="
```

### Python

```python
import base64
auth = base64.b64encode("meuemail@dominio.com:MinhaSenha".encode()).decode()
# Resultado: "bWV1ZW1haWxAZG9taW5pby5jb206TWluaGFTZW5oYQ=="
```

### Bash

```bash
echo -n "meuemail@dominio.com:MinhaSenha" | base64
# Resultado: bWV1ZW1haWxAZG9taW5pby5jb206TWluaGFTZW5oYQ==
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.skyone.cloud/espanol/api-skyone-autosky/logon-plataforma.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
