Upsert auth configuration
curl --request PUT \
--url http://localhost:6900/v1/auth \
--header 'Content-Type: application/json' \
--data '
{
"environmentId": "<string>",
"userIdClaim": "<string>",
"jwksUri": "<string>",
"signingSecret": "<string>",
"issuer": "<string>",
"audience": "<string>"
}
'import requests
url = "http://localhost:6900/v1/auth"
payload = {
"environmentId": "<string>",
"userIdClaim": "<string>",
"jwksUri": "<string>",
"signingSecret": "<string>",
"issuer": "<string>",
"audience": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
environmentId: '<string>',
userIdClaim: '<string>',
jwksUri: '<string>',
signingSecret: '<string>',
issuer: '<string>',
audience: '<string>'
})
};
fetch('http://localhost:6900/v1/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_PORT => "6900",
CURLOPT_URL => "http://localhost:6900/v1/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'environmentId' => '<string>',
'userIdClaim' => '<string>',
'jwksUri' => '<string>',
'signingSecret' => '<string>',
'issuer' => '<string>',
'audience' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:6900/v1/auth"
payload := strings.NewReader("{\n \"environmentId\": \"<string>\",\n \"userIdClaim\": \"<string>\",\n \"jwksUri\": \"<string>\",\n \"signingSecret\": \"<string>\",\n \"issuer\": \"<string>\",\n \"audience\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:6900/v1/auth")
.header("Content-Type", "application/json")
.body("{\n \"environmentId\": \"<string>\",\n \"userIdClaim\": \"<string>\",\n \"jwksUri\": \"<string>\",\n \"signingSecret\": \"<string>\",\n \"issuer\": \"<string>\",\n \"audience\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6900/v1/auth")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"environmentId\": \"<string>\",\n \"userIdClaim\": \"<string>\",\n \"jwksUri\": \"<string>\",\n \"signingSecret\": \"<string>\",\n \"issuer\": \"<string>\",\n \"audience\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodynullAuth
Upsert auth configuration
Creates or replaces the authentication provider configuration (JWKS/JWT) for an environment.
PUT
/
v1
/
auth
Upsert auth configuration
curl --request PUT \
--url http://localhost:6900/v1/auth \
--header 'Content-Type: application/json' \
--data '
{
"environmentId": "<string>",
"userIdClaim": "<string>",
"jwksUri": "<string>",
"signingSecret": "<string>",
"issuer": "<string>",
"audience": "<string>"
}
'import requests
url = "http://localhost:6900/v1/auth"
payload = {
"environmentId": "<string>",
"userIdClaim": "<string>",
"jwksUri": "<string>",
"signingSecret": "<string>",
"issuer": "<string>",
"audience": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
environmentId: '<string>',
userIdClaim: '<string>',
jwksUri: '<string>',
signingSecret: '<string>',
issuer: '<string>',
audience: '<string>'
})
};
fetch('http://localhost:6900/v1/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_PORT => "6900",
CURLOPT_URL => "http://localhost:6900/v1/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'environmentId' => '<string>',
'userIdClaim' => '<string>',
'jwksUri' => '<string>',
'signingSecret' => '<string>',
'issuer' => '<string>',
'audience' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:6900/v1/auth"
payload := strings.NewReader("{\n \"environmentId\": \"<string>\",\n \"userIdClaim\": \"<string>\",\n \"jwksUri\": \"<string>\",\n \"signingSecret\": \"<string>\",\n \"issuer\": \"<string>\",\n \"audience\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:6900/v1/auth")
.header("Content-Type", "application/json")
.body("{\n \"environmentId\": \"<string>\",\n \"userIdClaim\": \"<string>\",\n \"jwksUri\": \"<string>\",\n \"signingSecret\": \"<string>\",\n \"issuer\": \"<string>\",\n \"audience\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6900/v1/auth")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"environmentId\": \"<string>\",\n \"userIdClaim\": \"<string>\",\n \"jwksUri\": \"<string>\",\n \"signingSecret\": \"<string>\",\n \"issuer\": \"<string>\",\n \"audience\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodynullBody
application/json
Minimum string length:
1Available options:
clerk, supabase, firebase, auth0, custom Available options:
jwt, jwks Minimum string length:
1Response
200 - application/json
Auth config saved
The response is of type unknown.
