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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
