Iniciar fluxo OAuth
curl --request GET \
--url https://api-bc.pgubright.com/auth/authorizeconst options = {method: 'GET'};
fetch('https://api-bc.pgubright.com/auth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-bc.pgubright.com/auth/authorize"
response = requests.get(url)
print(response.text){
"authorization_url": "<string>",
"state": "<string>",
"expires_in": 300
}Autenticação
Iniciar fluxo OAuth
Gera state, code challenge PKCE e URL do Keycloak.
GET
/
auth
/
authorize
Iniciar fluxo OAuth
curl --request GET \
--url https://api-bc.pgubright.com/auth/authorizeconst options = {method: 'GET'};
fetch('https://api-bc.pgubright.com/auth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-bc.pgubright.com/auth/authorize"
response = requests.get(url)
print(response.text){
"authorization_url": "<string>",
"state": "<string>",
"expires_in": 300
}