> 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/api-skyone-autosky/logon-plataforma.md).

# Logon Plataforma

O processo de logon do usuário na plataforma **não** é realizado diretamente através de chamada de API.

Este procedimento é realizado através de uma chamada direta via **HTTPS** (conexão segura) para o domínio especificado com os parâmetros de logon.

Esse modelo permite que todos os controles e interações com o usuário em sua conexão sejam diretamente realizados pela plataforma Autosky. Procedimentos como instalação de plugin e outros controles poderão ser sugeridos e controlados pela plataforma.

## Estrutura da URL de Logon

A URL é composta pela URL de logon (fornecida junto com o token de autenticação) e as informações de usuário e senha.

### Parâmetros

| Parâmetro  | Obrigatório | Codificação  | Descrição                            |
| ---------- | ----------- | ------------ | ------------------------------------ |
| `auth`     | Sim         | Base64       | Credenciais no formato `EMAIL:SENHA` |
| `param`    | Não         | Base64       | Parâmetros da aplicação              |
| `back_url` | Não         | Texto normal | URL de retorno                       |

### Formato

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

## Exemplos

### Antes da conversão Base64

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

### Após a conversão Base64

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

## Como gerar o 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/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.
