Automatisch beim Anbieter registrieren (OIDC, RFC 7591)
curl --request POST \
--url https://ki.muster.example/api/v1/identity/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"issuer": "<string>",
"label": "<string>",
"initialToken": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/identity/register"
payload = {
"issuer": "<string>",
"label": "<string>",
"initialToken": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({issuer: '<string>', label: '<string>', initialToken: '<string>'})
};
fetch('https://ki.muster.example/api/v1/identity/register', 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://ki.muster.example/api/v1/identity/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'issuer' => '<string>',
'label' => '<string>',
'initialToken' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://ki.muster.example/api/v1/identity/register"
payload := strings.NewReader("{\n \"issuer\": \"<string>\",\n \"label\": \"<string>\",\n \"initialToken\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://ki.muster.example/api/v1/identity/register")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"issuer\": \"<string>\",\n \"label\": \"<string>\",\n \"initialToken\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/identity/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"issuer\": \"<string>\",\n \"label\": \"<string>\",\n \"initialToken\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"methodId": "<string>",
"needs": "initial-token",
"identity": {
"version": 4503599627370495,
"methods": [
{
"id": "<string>",
"kind": "entra",
"label": "<string>",
"enabled": true,
"status": "active",
"statusText": "<string>",
"source": "settings",
"clientId": "<string>",
"secret": {
"ref": "env",
"set": true,
"name": "<string>"
},
"tenant": "<string>",
"hd": "<string>",
"issuer": "<string>",
"org": "<string>",
"teamId": "<string>",
"keyId": "<string>",
"groupsFrom": "token",
"domains": [
"<string>"
],
"personal": true,
"test": {
"at": "<string>",
"by": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"ok": true,
"current": true,
"error": "<string>",
"groups": 4503599627370495
},
"onlyGroups": [
"<string>"
],
"statusSaid": {
"code": "<string>",
"vars": {}
},
"manageUrl": "<string>",
"preset": "adfs",
"saml": {
"entityId": "<string>",
"ssoUrl": "<string>",
"metadataUrl": "<string>",
"certs": [
{
"fingerprint": "<string>",
"notAfter": "<string>",
"expiresSoon": true
}
],
"fetchedAt": "<string>"
},
"warning": "<string>",
"offRefusal": "<string>",
"relay": {
"upstreams": [
"google"
],
"switchable": true,
"offRefusal": "<string>",
"measured": true
},
"ask": {
"state": "none",
"error": "<string>",
"unreachableAt": "<string>"
}
}
],
"access": {
"mode": "invite",
"domains": [
"<string>"
],
"invites": [
{
"email": "<string>",
"groups": [],
"invitedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"invitedAt": "<string>"
}
],
"admins": [
"<string>"
],
"groups": [
"<string>"
]
},
"customised": true,
"redirectUri": "<string>",
"signInUrl": "<string>",
"passkeyHost": "<string>",
"adminGroup": "<string>",
"secretStore": true,
"updatedAt": "<string>",
"updatedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"adminGroupName": "<string>",
"pin": {
"domain": "<string>",
"why": "soon"
},
"run": {
"runtime": "systemd",
"settingsFile": "<string>",
"restart": "<string>",
"topology": "<string>"
},
"saml": {
"entityId": "<string>",
"acsUrl": "<string>",
"metadataUrl": "<string>"
},
"lastAdmins": [
"<string>"
],
"handovers": [
{
"from": "<string>",
"to": "<string>",
"at": "<string>",
"by": "<string>"
}
],
"setup": {
"open": true,
"firstAdmin": {
"email": "<string>",
"at": "<string>",
"via": "link",
"name": "<string>",
"selfDeclared": true,
"recoveredAt": "<string>"
},
"expiresAt": "<string>",
"claim": {
"email": "<string>",
"until": "<string>"
}
},
"recovery": true,
"recoveryOff": "no-channel",
"recoveryRefused": {
"why": "<string>",
"message": "<string>",
"said": {
"code": "<string>",
"vars": {}
}
},
"recoveryTold": "mail",
"recoveryNoMail": "none",
"addressWay": true,
"host": {
"name": "<string>",
"manageUrl": "<string>",
"access": "<string>",
"accessSaid": {
"code": "<string>",
"vars": {}
}
}
}
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Automatisch beim Anbieter registrieren (OIDC, RFC 7591)
Automatisch beim Anbieter registrieren (OIDC, RFC 7591).
Im Chat mit «Mono Admin»: .
POST
/
identity
/
register
Automatisch beim Anbieter registrieren (OIDC, RFC 7591)
curl --request POST \
--url https://ki.muster.example/api/v1/identity/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"issuer": "<string>",
"label": "<string>",
"initialToken": "<string>"
}
'import requests
url = "https://ki.muster.example/api/v1/identity/register"
payload = {
"issuer": "<string>",
"label": "<string>",
"initialToken": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({issuer: '<string>', label: '<string>', initialToken: '<string>'})
};
fetch('https://ki.muster.example/api/v1/identity/register', 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://ki.muster.example/api/v1/identity/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'issuer' => '<string>',
'label' => '<string>',
'initialToken' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://ki.muster.example/api/v1/identity/register"
payload := strings.NewReader("{\n \"issuer\": \"<string>\",\n \"label\": \"<string>\",\n \"initialToken\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://ki.muster.example/api/v1/identity/register")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"issuer\": \"<string>\",\n \"label\": \"<string>\",\n \"initialToken\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/identity/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"issuer\": \"<string>\",\n \"label\": \"<string>\",\n \"initialToken\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"methodId": "<string>",
"needs": "initial-token",
"identity": {
"version": 4503599627370495,
"methods": [
{
"id": "<string>",
"kind": "entra",
"label": "<string>",
"enabled": true,
"status": "active",
"statusText": "<string>",
"source": "settings",
"clientId": "<string>",
"secret": {
"ref": "env",
"set": true,
"name": "<string>"
},
"tenant": "<string>",
"hd": "<string>",
"issuer": "<string>",
"org": "<string>",
"teamId": "<string>",
"keyId": "<string>",
"groupsFrom": "token",
"domains": [
"<string>"
],
"personal": true,
"test": {
"at": "<string>",
"by": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"ok": true,
"current": true,
"error": "<string>",
"groups": 4503599627370495
},
"onlyGroups": [
"<string>"
],
"statusSaid": {
"code": "<string>",
"vars": {}
},
"manageUrl": "<string>",
"preset": "adfs",
"saml": {
"entityId": "<string>",
"ssoUrl": "<string>",
"metadataUrl": "<string>",
"certs": [
{
"fingerprint": "<string>",
"notAfter": "<string>",
"expiresSoon": true
}
],
"fetchedAt": "<string>"
},
"warning": "<string>",
"offRefusal": "<string>",
"relay": {
"upstreams": [
"google"
],
"switchable": true,
"offRefusal": "<string>",
"measured": true
},
"ask": {
"state": "none",
"error": "<string>",
"unreachableAt": "<string>"
}
}
],
"access": {
"mode": "invite",
"domains": [
"<string>"
],
"invites": [
{
"email": "<string>",
"groups": [],
"invitedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"invitedAt": "<string>"
}
],
"admins": [
"<string>"
],
"groups": [
"<string>"
]
},
"customised": true,
"redirectUri": "<string>",
"signInUrl": "<string>",
"passkeyHost": "<string>",
"adminGroup": "<string>",
"secretStore": true,
"updatedAt": "<string>",
"updatedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"adminGroupName": "<string>",
"pin": {
"domain": "<string>",
"why": "soon"
},
"run": {
"runtime": "systemd",
"settingsFile": "<string>",
"restart": "<string>",
"topology": "<string>"
},
"saml": {
"entityId": "<string>",
"acsUrl": "<string>",
"metadataUrl": "<string>"
},
"lastAdmins": [
"<string>"
],
"handovers": [
{
"from": "<string>",
"to": "<string>",
"at": "<string>",
"by": "<string>"
}
],
"setup": {
"open": true,
"firstAdmin": {
"email": "<string>",
"at": "<string>",
"via": "link",
"name": "<string>",
"selfDeclared": true,
"recoveredAt": "<string>"
},
"expiresAt": "<string>",
"claim": {
"email": "<string>",
"until": "<string>"
}
},
"recovery": true,
"recoveryOff": "no-channel",
"recoveryRefused": {
"why": "<string>",
"message": "<string>",
"said": {
"code": "<string>",
"vars": {}
}
},
"recoveryTold": "mail",
"recoveryNoMail": "none",
"addressWay": true,
"host": {
"name": "<string>",
"manageUrl": "<string>",
"access": "<string>",
"accessSaid": {
"code": "<string>",
"vars": {}
}
}
}
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Autorisierungen
Body
application/json