Third party provider callback
curl --request GET \
--url https://{tenant_id}.hanko.io/thirdparty/callbackimport requests
url = "https://{tenant_id}.hanko.io/thirdparty/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{tenant_id}.hanko.io/thirdparty/callback', 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://{tenant_id}.hanko.io/thirdparty/callback",
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://{tenant_id}.hanko.io/thirdparty/callback"
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://{tenant_id}.hanko.io/thirdparty/callback")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_id}.hanko.io/thirdparty/callback")
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_bodyThird Party
Third party provider callback
Callback endpoint called by the third party provider after successful login.
GET
/
thirdparty
/
callback
Third party provider callback
curl --request GET \
--url https://{tenant_id}.hanko.io/thirdparty/callbackimport requests
url = "https://{tenant_id}.hanko.io/thirdparty/callback"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{tenant_id}.hanko.io/thirdparty/callback', 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://{tenant_id}.hanko.io/thirdparty/callback",
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://{tenant_id}.hanko.io/thirdparty/callback"
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://{tenant_id}.hanko.io/thirdparty/callback")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_id}.hanko.io/thirdparty/callback")
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
The authorization code that can be exchanged for an access token and to retrieve user provider data
The state
An error returned from the third party provider
The description of the error that occurred (if any)
Response
307
Redirect to requested redirect URL or to configured site redirect URL
Was this page helpful?