curl --request GET \
--url https://sandbox.circularo.com/api/v1/oauth/{strategy_name}import requests
url = "https://sandbox.circularo.com/api/v1/oauth/{strategy_name}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/oauth/{strategy_name}', 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://sandbox.circularo.com/api/v1/oauth/{strategy_name}",
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://sandbox.circularo.com/api/v1/oauth/{strategy_name}"
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://sandbox.circularo.com/api/v1/oauth/{strategy_name}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/oauth/{strategy_name}")
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_body{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Start a flow with an external provider
GET /oauth/{strategy_name}
Hands the person over to an external provider and starts a flow that comes back to GET /oauth/{strategy_name}/callback. It answers with a redirect to that provider, so it is opened in a browser - as a page or as a pop-up window - and never called for its data.
The same entry point serves everything the platform does through such a provider, told apart by what accompanies the request. On its own it signs the person in, creating the account on the spot where the tenant allows accounts to be opened this way. With a token and connect it attaches the provider to that person’s account and keeps the access it grants, which is how cloud storage is connected. With a token and link it links a provider identity to their account, for the providers that recognise people by identity rather than by e-mail address. With activation it confirms a freshly created account. With shareToken it lets the recipient of a share prove who they are before the document opens. With a signing provider it authorizes a signature instead, on the document named by documentId or on the one behind the share whose token was passed.
Which tenant the flow belongs to is taken from domain, or from the Referer header when that is left out, and the address has to be one registered here. Everything else sent along is kept on the server and handed to the provider as a single opaque handle, so none of it travels through the browser. The flow has five minutes to come back, and it is tied to the browser it was started in.
No authorization: No authorization is required to call this endpoint.
curl --request GET \
--url https://sandbox.circularo.com/api/v1/oauth/{strategy_name}import requests
url = "https://sandbox.circularo.com/api/v1/oauth/{strategy_name}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/oauth/{strategy_name}', 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://sandbox.circularo.com/api/v1/oauth/{strategy_name}",
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://sandbox.circularo.com/api/v1/oauth/{strategy_name}"
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://sandbox.circularo.com/api/v1/oauth/{strategy_name}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/oauth/{strategy_name}")
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_body{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Headers
Path Parameters
Query Parameters
Activation token from the message a freshly created account is confirmed with. It turns the flow into that confirmation, which goes through only while the account is still unconfirmed and only when the provider reports the very address it was created for. The activation token then becomes the person's session token instead of a new one being issued.
Address of your own to finish at, rather than in the browser session - what a desktop, mobile or integration client uses. The flow then ends there with a one-time code to exchange through GET /oauth/code, and no session cookie is set. Anything other than the default address for native applications has to be listed in the tenant's oauthCallbackWhitelist setting.
"http://localhost:8081/callback"
Attaches the provider that answers to the account the accompanying token belongs to and keeps the access it grants, which is how a cloud storage or similar provider is connected. It settles the case where the two are not the same person: without it, a token whose owner is not the one the provider authenticated is dropped and the flow turns into a plain sign-in as whoever did authenticate.
Address to send the person back to when the flow fails, taking the place of the Referer header of this request. It is used when the failure happens before the flow can be tied to a tenant, and for a signing provider whenever it fails; other failures return to the application named by domain.
Response
The browser is redirected to the provider to authenticate the person.