GET /auth/oauth/providers
Devolve map name→configured pra o frontend decidir botões.
- Access: Public
- Service:
https://auth-api.axuz.net
Accepted authentication
No authentication (public route, or protected by link/signature).
Devolve map name→configured pra o frontend decidir botões.
Motivo: cliente não precisa branchar em env; o backend expõe estado do wireup dos providers. Antes desse endpoint, o front tentava clicar e batia numa recusa crua que quebrava UX. Comportamento: começa com {google:false, github:false}; itera h.oauth.Providers (se cfg presente) e escreve Configured() em cada key.
Entradas: nenhuma (GET sem query).
Retorno: 200 JSON {"google": bool, "github": bool}. Efeito: nenhum (só leitura de config).
Parameters
No parameters.
Responses
200
JSON {"google": bool, "github": bool}. Efeito: nenhum (só leitura de config)
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X GET 'https://auth-api.axuz.net/auth/oauth/providers'Node.js
const res = await fetch("https://auth-api.axuz.net/auth/oauth/providers", {
method: 'GET',
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"GET",
"https://auth-api.axuz.net/auth/oauth/providers",
timeout=30,
)
res.raise_for_status()
print(res.json())