Applications

Create and manage OAuth 1 or OAuth 2 applications

Applications represent your mobile, native, web apps or even a script that can communicate with an Extra Horizon environment. Any token used for authenticating with your Extra Horizon cluster will be linked to an application.

Before you can get started with building any frontend app on top of Extra Horizon you will need to create an app.

Default applications When launching a new cluster two default applications are created by us:

  1. ExH Control center: An OAuth 2 app that gives our control center (available on app.extrahorizon.com) the ability to communicate with your cluster. You as an admin can use this app to explore and manage your cluster.

  2. CLI: An OAuth 1 application that you can use when installing our CLI in order to send configurations to your cluster. Credentials are provided to your cluster manager during onboarding.

Create a new application

You can create two types of applications: OAuth 1 applications or OAuth 2 applications.

PropertyDescription

name

The name or your application

description

A description of your application

type

The type of application. Could be set to oauth1 or oauth2

redirectUris

A list of approved uri's that can be used when authenticating with an authorization code grant flow. Can only be used in an oAuth2 application type.

confidential

Defines whether your application should be considered a confidential app according to the OAuth 2 spec.

logo

The logo of the application. Can be used in the OAuth 2 authorization code grant to indicate the user what application he is authorizing. Can only be used in an OAuth 2 application type.

await exh.auth.applications.create({
  type: 'oauth1',
  name: 'myAppName',
  description: 'myAppDescription'
});

Last updated