Autorizar (browser)
curl --request GET \
--url https://api.notifique.dev/oauth/authorizeconst options = {method: 'GET'};
fetch('https://api.notifique.dev/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/oauth/authorize"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/oauth/authorize"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}OAuth
Autorizar (browser)
Abre a tela de login e consentimento. PKCE obrigatório (code_challenge + S256). Redireciona para redirect_uri com code e state.
GET
/
oauth
/
authorize
Autorizar (browser)
curl --request GET \
--url https://api.notifique.dev/oauth/authorizeconst options = {method: 'GET'};
fetch('https://api.notifique.dev/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/oauth/authorize"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/oauth/authorize"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Parâmetros de consulta
ID do cliente OAuth.
Sempre code (authorization code).
Opções disponíveis:
code Deve coincidir exatamente com uma URI registrada.
Escopos separados por espaço (ex.: email:send contacts:read).
Valor aleatório — valide no callback contra CSRF.
BASE64URL(SHA256(code_verifier)).
Sempre S256.
Opções disponíveis:
S256 Resposta
Redirección al login o a redirect_uri?code=...&state=... tras la aprobación.
Esta página foi útil?

