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

# Platform Logon

The user logon process on the platform is **not** performed directly through an API call.

This procedure is carried out through a direct call via **HTTPS** (secure connection) to the specified domain using the logon parameters.

This model allows all controls and interactions with the user during their connection to be handled directly by the Autosky platform. Procedures such as plugin installation and other controls can be suggested and managed by the platform.

## **Logon URL Structure**

The URL is composed of the logon URL (provided along with the authentication token) and the user and password information.

### Parâmetros

| Parameter  | Required | Encoding    | Description                            |
| ---------- | -------- | ----------- | -------------------------------------- |
| `auth`     | Yes      | Base64      | Credentials in `EMAIL:PASSWORD` format |
| `param`    | No       | Base64      | Application parameters                 |
| `back_url` | No       | Normal text | Return URL                             |

### Format

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

## Examples

### Before Base64 conversion

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

### After Base64 conversion

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

## How to generate 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/english/api-skyone-autosky/platform-logon.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.
