curl --request GET \
--url https://auth.endaoment.org/authimport requests
url = "https://auth.endaoment.org/auth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://auth.endaoment.org/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://auth.endaoment.org/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://auth.endaoment.org/auth"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://auth.endaoment.org/auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.endaoment.org/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyStart OAuth authorization
Starts the OAuth 2.0 Authorization Code + PKCE login flow by redirecting the user to Endaoment’s sign-in page.
This endpoint lives on the Endaoment auth server ({AUTH_URL}/auth). Redirect the user’s browser here from your backend after generating PKCE values and state. After login, Endaoment redirects back to your registered redirect_uri with code and state query parameters.
Exchange the returned code at POST /token.
curl --request GET \
--url https://auth.endaoment.org/authimport requests
url = "https://auth.endaoment.org/auth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://auth.endaoment.org/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://auth.endaoment.org/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://auth.endaoment.org/auth"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://auth.endaoment.org/auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.endaoment.org/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyQuery Parameters
Must be code for the Authorization Code flow.
code OAuth client ID issued by Endaoment.
Registered callback URL. Must match exactly in the later token exchange.
Space-delimited OAuth scopes. Common value: openid accounts transactions profile email address. Add offline_access for refresh tokens — include prompt=consent on this request or refresh tokens are silently omitted.
PKCE code challenge (S256 hash of the stored code_verifier).
PKCE challenge method. Endaoment supports S256 only.
S256 Random value your backend can verify on callback to prevent CSRF.
Use consent when requesting offline_access to ensure a refresh token can be issued.
consent Response
Redirect to Endaoment login, or back to redirect_uri with code and state after successful authentication
Was this page helpful?