Register your application

Register your application

Before you're able to start using Passport, you will need to register your application as an OAuth 2.0 client in the XpansionChain Developer Hub. An OAuth client needs to be registered for every type of application you own, so if you are a game publisher that requires the Passport login in a mobile app and a website, you need to create two clients.

Creating a client allows you to configure settings specific to your application, such as the permissions you require from users. It also grants you a set of credentials that you will need when initiating the login flow from your app.

Things to note when adding a client in the Developer Hub

  • Application Type: The type of your application. Two options are available. Web Application for applications accessible through a web browser or Native for mobile or desktop applications.

  • Client name: The name you wish to use to identify your application.

  • Logout URLs: The URL that your users will be redirected to upon logging out of your application.

  • Callback URLs: The URL that your users will be redirected to once the authentication is complete. This is also where your application process the authentication response.

  • Web Origins URLs: The URLs that are allowed to request authorisation. This field is available when you select the Native application type.

Next steps

Once you have successfully registered your application in the XpansionChain Developer Hub. Be sure to make a note of your application's Client ID, Callback URL and the Logout URL that you entered, as you will need these to initialise the Passport module in your application.

Last updated