Create Application
Creates a new application with the specified configuration, including identity providers, scopes, and enrollment settings.
Required scopes: auth:apps:edit (organisation-wide) or auth:apps:edit:own (applications owned by a team you belong to)
Authorization
BearerAuth JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 641 <= length <= 64uri1 <= length <= 128Deprecated: set sign_in_mode. Honoured only while sign_in_mode is UNSPECIFIED: true means EVERYONE; false means TEAM_MEMBERS when supports_teams is set, else INVITE_ONLY.
Additional audiences stamped onto tokens issued for this application.
ORGANISATION ADMINISTRATORS ONLY: a caller without auth:apps:edit is
refused if it sets this, because an arbitrary audience is a token another
product will accept. Every application always carries its own derived
identity audience (urn:xeonr:auth:application:<application_id>) whether
or not this list is set, so it is optional.
items <= 10Deprecated and ignored: the public catalogue is gone.
URL for the validation callback endpoint (called during PAR and consent for RAR)
uriWhether the application understands Xeonr Teams: the explicit switch (see Application.supports_teams). Owner-settable. Off, the application cannot be created with a TEAM_MEMBERS sign_in_mode or a team_enablement other than ADMIN_MANAGED.
Deprecated: set team_enablement. Honoured only while team_enablement is UNSPECIFIED: true means SELF_SERVE (which only an administrator may set, on a platform application), false means ADMIN_MANAGED.
Lets clients created by RFC 7591 dynamic registration request this application's scopes without holding a ClientApplicationBinding. Only the PUBLIC-tier scopes that are not role-gated or service-account-only are admitted, and the user's consent and enrollment gates still apply.
Team to own the new application, as a slug or urn:xeonr:auth:team:<uuid>.
REQUIRED unless the caller is an organisation administrator; the caller
must be an owner of the named team. An administrator may omit it to create
an organisation-owned application.
Who can sign in. UNSPECIFIED falls back to the deprecated flags above, and with none of them set means INVITE_ONLY.
"SIGN_IN_MODE_UNSPECIFIED" | "SIGN_IN_MODE_EVERYONE" | "SIGN_IN_MODE_TEAM_MEMBERS" | "SIGN_IN_MODE_INVITE_ONLY"Who may enable the application on a team. UNSPECIFIED means ADMIN_MANAGED (or what the deprecated automatic_team_binding says). SELF_SERVE needs an organisation administrator and a platform application; everyone who may create an application may choose ADMIN_MANAGED or BY_REQUEST.
"TEAM_ENABLEMENT_UNSPECIFIED" | "TEAM_ENABLEMENT_ADMIN_MANAGED" | "TEAM_ENABLEMENT_BY_REQUEST" | "TEAM_ENABLEMENT_SELF_SERVE"Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/CreateApplication" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"application": {
"applicationId": "app_prod_myapp",
"name": "My Application",
"slug": "my-application",
"websiteUrl": "https://myapp.example.com",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"enabledIdps": [
"github",
"discord"
],
"scopes": [
{
"name": "read:users",
"description": "Read access to user data",
"isInternal": true,
"isSensitive": true,
"role": {
"name": "admin",
"iacManaged": true,
"roleType": "ROLE_TYPE_UNSPECIFIED",
"description": "string",
"defaultOwnerRole": true,
"displayName": "Administrator",
"teamRank": 0,
"ownerInherited": true
},
"isDelegatable": true,
"isServiceAccountOnly": true,
"isOrgOnly": true,
"iacManaged": true,
"dynamicCanGrant": true,
"tier": "SCOPE_TIER_UNSPECIFIED"
}
],
"automaticEnrollment": true,
"audience": [
"https://api.example.com"
],
"roles": [
{
"name": "admin",
"iacManaged": true,
"roleType": "ROLE_TYPE_UNSPECIFIED",
"description": "string",
"defaultOwnerRole": true,
"displayName": "Administrator",
"teamRank": 0,
"ownerInherited": true
}
],
"supportsScopedRequests": true,
"applicationCustomConfig": {
"jsonSchema": {
"property1": {},
"property2": {}
},
"uiSchema": {
"property1": {},
"property2": {}
}
},
"public": true,
"resourceTypes": [
{
"type": "bucket",
"jsonSchema": {
"property1": {},
"property2": {}
},
"displayTitleField": "title",
"displayDescriptionField": "description",
"iacManaged": true,
"parents": [
"string"
],
"actions": [
"string"
],
"scopedEnforcement": true
}
],
"validationCallbackUrl": "https://uploads.example.com/api/auth/validate",
"iacManaged": true,
"supportsTeams": true,
"automaticTeamBinding": true,
"allowDynamicClients": true,
"console": {
"product": true,
"origin": "string",
"icon": "string",
"colour": "string",
"category": "string",
"blurb": "string",
"status": "string",
"scopes": [
"string"
],
"pinnedByDefault": true,
"docsUrl": "string",
"supportUrl": "string",
"displayName": "string"
},
"ownerTeam": "urn:xeonr:auth:team:6f1a…",
"ownerTeamSlug": "string",
"platform": true,
"signInMode": "SIGN_IN_MODE_UNSPECIFIED",
"teamEnablement": "TEAM_ENABLEMENT_UNSPECIFIED",
"tokenClaimsByReference": true
}
}Add Enrollment POST
Enrolls a user in an application with the specified roles. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
Create Application Invitation POST
Invites an email address to use the application: a pending enrollment that becomes real on that address's first sign-in to a client needing the application (the signed-in user's verified email must match), and expires unused after `expires_in_days` (default 14). Re-inviting an address replaces its open invitation. The invitee is emailed. Refused for an application open to everyone, and for the auth application. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)