End user session
curl --request GET \
--url https://auth.endaoment.org/session/endimport requests
url = "https://auth.endaoment.org/session/end"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://auth.endaoment.org/session/end', 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/session/end",
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/session/end"
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/session/end")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.endaoment.org/session/end")
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_bodyAuthentication
End user session
Ends the user’s Endaoment browser session (OpenID Connect end-session / logout).
Redirect the user’s browser here when they sign out of your application. Optionally pass post_logout_redirect_uri to return the user to your app after logout.
GET
/
session
/
end
End user session
curl --request GET \
--url https://auth.endaoment.org/session/endimport requests
url = "https://auth.endaoment.org/session/end"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://auth.endaoment.org/session/end', 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/session/end",
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/session/end"
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/session/end")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.endaoment.org/session/end")
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
ID token previously issued to the user. Helps Endaoment identify which session to end.
Registered URL to redirect the user after logout completes.
Opaque value returned to your app on the post-logout redirect.
Response
Redirect to Endaoment logout confirmation or to post_logout_redirect_uri
Was this page helpful?