Loginapp/Register
Create Login Application
This endpoint creates a new login application for the tenant. Only tenant admins can create login applications.
client_name?string
client_uri?string
contacts?array<string>
grant_types?array<string>
jwks?string
jwks_uri?string
logo_uri?string
policy_uri?string
redirect_uris?array<string>
response_types?array<string>
scope?string
software_id?string
software_statement?string
software_version?string
token_endpoint_auth_method?string
tos_uri?string
Response Body
curl -X POST "https://your-tenant-name.tenant.userclouds.com/loginapp/register" \
-H "Content-Type: application/json" \
-d '{}'const body = JSON.stringify({})
fetch("https://your-tenant-name.tenant.userclouds.com/loginapp/register", {
body
})package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://your-tenant-name.tenant.userclouds.com/loginapp/register"
body := strings.NewReader(`{}`)
req, _ := http.NewRequest("POST", url, body)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://your-tenant-name.tenant.userclouds.com/loginapp/register"
body = {}
response = requests.request("POST", url, json = body, headers = {
"Content-Type": "application/json"
})
print(response.text){
"Metadata": {
"client_name": "string",
"client_uri": "string",
"contacts": [
"string"
],
"grant_types": [
"string"
],
"jwks": "string",
"jwks_uri": "string",
"logo_uri": "string",
"policy_uri": "string",
"redirect_uris": [
"string"
],
"response_types": [
"string"
],
"scope": "string",
"software_id": "string",
"software_statement": "string",
"software_version": "string",
"token_endpoint_auth_method": "string",
"tos_uri": "string"
},
"app_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"client_id": "string",
"client_id_issued_at": "2019-08-24T14:15:22Z",
"client_secret": "string",
"client_secret_expires_at": "2019-08-24T14:15:22Z",
"organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
}Empty