Metadados do Authorization Server
curl --request GET \
--url https://api.notifique.dev/.well-known/oauth-authorization-serverconst options = {method: 'GET'};
fetch('https://api.notifique.dev/.well-known/oauth-authorization-server', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/.well-known/oauth-authorization-server"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/.well-known/oauth-authorization-server"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"issuer": "https://api.notifique.dev",
"authorization_endpoint": "https://api.notifique.dev/oauth/authorize",
"token_endpoint": "https://api.notifique.dev/oauth/token",
"registration_endpoint": "https://api.notifique.dev/oauth/register",
"revocation_endpoint": "https://api.notifique.dev/oauth/revoke",
"jwks_uri": "https://api.notifique.dev/.well-known/jwks.json",
"response_types_supported": [
"code"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"code_challenge_methods_supported": [
"S256"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"none"
],
"scopes_supported": [
"email:send",
"whatsapp:send",
"sms:send",
"contacts:read"
]
}Metadados
Metadados do Authorization Server
Retorna URLs dos endpoints OAuth (authorization_endpoint, token_endpoint, registration_endpoint, etc.) conforme RFC 8414.
GET
/
.well-known
/
oauth-authorization-server
Metadados do Authorization Server
curl --request GET \
--url https://api.notifique.dev/.well-known/oauth-authorization-serverconst options = {method: 'GET'};
fetch('https://api.notifique.dev/.well-known/oauth-authorization-server', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/.well-known/oauth-authorization-server"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/.well-known/oauth-authorization-server"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"issuer": "https://api.notifique.dev",
"authorization_endpoint": "https://api.notifique.dev/oauth/authorize",
"token_endpoint": "https://api.notifique.dev/oauth/token",
"registration_endpoint": "https://api.notifique.dev/oauth/register",
"revocation_endpoint": "https://api.notifique.dev/oauth/revoke",
"jwks_uri": "https://api.notifique.dev/.well-known/jwks.json",
"response_types_supported": [
"code"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"code_challenge_methods_supported": [
"S256"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"none"
],
"scopes_supported": [
"email:send",
"whatsapp:send",
"sms:send",
"contacts:read"
]
}Resposta
200 - application/json
Documento de metadados OAuth 2.0.
Esta página foi útil?

