Skip to content

Commit 80bbaee

Browse files
committed
docs(login): describe sessions as users see them
The login reference says a session stays current on its own and that archgate login signs you in again if it expires, without access and refresh token mechanics or beta-token history. Same change in pt-BR and nb.
1 parent 3dece00 commit 80bbaee

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/public/llms-full.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4730,7 +4730,7 @@ Starts an OAuth 2.0 Device Authorization Grant (RFC 8628) against the Archgate p
47304730

47314731
Neither step is required. In CI, over SSH, or on a native Linux host with no display server (WSL reaches the Windows desktop) the CLI skips both and just prints them. Once authorized, the CLI hands the resulting tokens to git via `git credential approve`, so where they end up depends on the credential helper you have configured. A helper backed by your OS credential manager (macOS Keychain, Windows Credential Manager, Linux libsecret) keeps them encrypted; git's built-in `store` helper writes them to `~/.git-credentials` in plain text. Check yours with `git config --global credential.helper`.
47324732

4733-
Access tokens are short-lived. The CLI keeps a refresh token alongside them and renews the access token automatically, so signing in once is normally enough. If the refresh token itself expires or is revoked, the CLI reports that the session has expired, and `archgate login` re-establishes it. Plugin tokens from the beta sign-up (`ag_beta_…`) are not accepted by `plugins.archgate.dev`; run `archgate login` to replace one with a platform session.
4733+
Signing in once is normally enough: the CLI keeps your session current on its own. If the session expires or is revoked, the CLI tells you, and `archgate login` signs you in again.
47344734

47354735
Signing in also registers `archgate credential` as a git credential helper for `plugins.archgate.dev`, which is what lets `git clone` of a plugin repository authenticate without prompting. See [`archgate credential`](/reference/cli/credential/).
47364736

‎docs/src/content/docs/nb/reference/cli/login.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Starter en OAuth 2.0 Device Authorization Grant (RFC 8628) mot Archgate-plattfor
1313

1414
Ingen av delene er påkrevd. I CI, over SSH eller på en ren Linux-maskin uten skjermserver (WSL når Windows-skrivebordet) hopper CLI-en over begge og skriver dem bare ut. Når autorisasjonen er fullført, gir CLI-en tokenene til git via `git credential approve`, så hvor de havner avhenger av hvilken credential-helper du har konfigurert. En helper som bruker operativsystemets legitimasjonsbehandler (macOS Keychain, Windows Credential Manager, Linux libsecret) holder dem krypterte; gits innebygde `store`-helper skriver dem til `~/.git-credentials` i klartekst. Sjekk din med `git config --global credential.helper`.
1515

16-
Tilgangstokener er kortlivede. CLI-en beholder et refresh-token ved siden av dem og fornyer tilgangstokenet automatisk, så det holder normalt å logge inn én gang. Hvis selve refresh-tokenet utløper eller blir tilbakekalt, melder CLI-en at økten er utløpt, og `archgate login` gjenoppretter den. Plugin-tokener fra beta-registreringen (`ag_beta_…`) godtas ikke av `plugins.archgate.dev`; kjør `archgate login` for å erstatte et slikt token med en plattformøkt.
16+
Det holder normalt å logge inn én gang: CLI-en holder økten din oppdatert av seg selv. Hvis økten utløper eller blir tilbakekalt, sier CLI-en fra, og `archgate login` logger deg inn igjen.
1717

1818
Innlogging registrerer også `archgate credential` som en git credential helper for `plugins.archgate.dev`, som er det som lar `git clone` av et plugin-repositorium autentisere uten å spørre. Se [`archgate credential`](/reference/cli/credential/).
1919

‎docs/src/content/docs/pt-br/reference/cli/login.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Inicia um OAuth 2.0 Device Authorization Grant (RFC 8628) na plataforma Archgate
1313

1414
Nenhuma das duas etapas é obrigatória. Em CI, via SSH ou em uma máquina Linux nativa sem servidor gráfico (o WSL alcança a área de trabalho do Windows), a CLI pula ambas e apenas os exibe. Após a autorização, a CLI entrega os tokens ao git via `git credential approve`, então onde eles ficam depende do credential helper que você tem configurado. Um helper apoiado no gerenciador de credenciais do sistema operacional (macOS Keychain, Windows Credential Manager, libsecret no Linux) os mantém criptografados; o helper `store` embutido do git os grava em `~/.git-credentials` em texto puro. Verifique o seu com `git config --global credential.helper`.
1515

16-
Os tokens de acesso têm vida curta. A CLI mantém um refresh token junto deles e renova o token de acesso automaticamente, então normalmente basta entrar uma vez. Se o próprio refresh token expirar ou for revogado, a CLI informa que a sessão expirou, e o `archgate login` a restabelece. Tokens de plugin do cadastro beta (`ag_beta_…`) não são aceitos por `plugins.archgate.dev`; execute `archgate login` para substituí-los por uma sessão da plataforma.
16+
Normalmente basta entrar uma vez: a CLI mantém sua sessão atualizada sozinha. Se a sessão expirar ou for revogada, a CLI avisa, e o `archgate login` faz seu login novamente.
1717

1818
Entrar também registra `archgate credential` como um credential helper do git para `plugins.archgate.dev`, que é o que permite ao `git clone` de um repositório de plugin autenticar sem solicitar credenciais. Veja [`archgate credential`](/reference/cli/credential/).
1919

‎docs/src/content/docs/reference/cli/login.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Starts an OAuth 2.0 Device Authorization Grant (RFC 8628) against the Archgate p
1313

1414
Neither step is required. In CI, over SSH, or on a native Linux host with no display server (WSL reaches the Windows desktop) the CLI skips both and just prints them. Once authorized, the CLI hands the resulting tokens to git via `git credential approve`, so where they end up depends on the credential helper you have configured. A helper backed by your OS credential manager (macOS Keychain, Windows Credential Manager, Linux libsecret) keeps them encrypted; git's built-in `store` helper writes them to `~/.git-credentials` in plain text. Check yours with `git config --global credential.helper`.
1515

16-
Access tokens are short-lived. The CLI keeps a refresh token alongside them and renews the access token automatically, so signing in once is normally enough. If the refresh token itself expires or is revoked, the CLI reports that the session has expired, and `archgate login` re-establishes it. Plugin tokens from the beta sign-up (`ag_beta_…`) are not accepted by `plugins.archgate.dev`; run `archgate login` to replace one with a platform session.
16+
Signing in once is normally enough: the CLI keeps your session current on its own. If the session expires or is revoked, the CLI tells you, and `archgate login` signs you in again.
1717

1818
Signing in also registers `archgate credential` as a git credential helper for `plugins.archgate.dev`, which is what lets `git clone` of a plugin repository authenticate without prompting. See [`archgate credential`](/reference/cli/credential/).
1919

0 commit comments

Comments
 (0)