Get Config
curl --request GET \
--url https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/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://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"enabled": true,
"allowedOrigins": [
"<string>"
],
"redirectUrls": [
"<string>"
],
"accessTokenTtlSeconds": 123,
"refreshTokenTtlSeconds": 123,
"sessionIdleTtlSeconds": 123,
"sessionMaxTtlSeconds": 123,
"emailPasswordEnabled": true,
"magicLinkEnabled": true,
"passwordMinLength": 123,
"magicLinkTtlSeconds": 123,
"passwordResetTtlSeconds": 123,
"google": {
"enabled": true,
"clientId": "<string>",
"secretConfigured": true,
"secretVersion": 123,
"rotatedAt": "2023-11-07T05:31:56Z"
},
"github": {
"enabled": true,
"clientId": "<string>",
"secretConfigured": true,
"secretVersion": 123,
"rotatedAt": "2023-11-07T05:31:56Z"
},
"callbackUrl": "<string>",
"githubCallbackUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}appauth
Get Config
Get app-auth policy and provider status. Provider secrets are never returned.
GET
/
v1
/
orgs
/
{orgId}
/
projects
/
{projectId}
/
auth
Get Config
curl --request GET \
--url https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/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://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"enabled": true,
"allowedOrigins": [
"<string>"
],
"redirectUrls": [
"<string>"
],
"accessTokenTtlSeconds": 123,
"refreshTokenTtlSeconds": 123,
"sessionIdleTtlSeconds": 123,
"sessionMaxTtlSeconds": 123,
"emailPasswordEnabled": true,
"magicLinkEnabled": true,
"passwordMinLength": 123,
"magicLinkTtlSeconds": 123,
"passwordResetTtlSeconds": 123,
"google": {
"enabled": true,
"clientId": "<string>",
"secretConfigured": true,
"secretVersion": 123,
"rotatedAt": "2023-11-07T05:31:56Z"
},
"github": {
"enabled": true,
"clientId": "<string>",
"secretConfigured": true,
"secretVersion": 123,
"rotatedAt": "2023-11-07T05:31:56Z"
},
"callbackUrl": "<string>",
"githubCallbackUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Authorizations
apiKeysession
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The organization's id (UUID) or slug — either form is accepted.
The project's id (UUID) or slug — either form is accepted.
Response
App-auth configuration.
Exact browser origins. Wildcards are not accepted.
Exact post-sign-in redirect URLs. HTTPS is required except for loopback localhost URLs.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Exact Google OAuth callback URL to register for this project.
Exact GitHub OAuth callback URL to register for this project.