Enable user identity
Enable user identity
XpansionChain Passport is an Open ID provider and uses the Open ID Connect protocol for authentication and authorization. Third-party applications, such as games or marketplaces, can integrate Passport into their platforms to authenticate their users and access their wallets.
To learn how to create and configure your OAuth client, please refer to the Installation guide.
How authentication works
When using Passport as an identity provider, the authentication flow begins within your application. If the user already has an account with Passport, they can sign in to their existing account using the same credentials, which can be shared across multiple apps.
For new users, they will need to sign up for a new account and complete the authentication flow to be authenticated in your application.
The high-level steps for the authentication flow are as follows:
The user clicks on "Login with Passport" in your application.
The user a window pop-up is opened with Passport's secure login page (auth.XpansionChain.com).
The user authenticates based on their preferred login method.
The user approves the scopes you requested when registering your app's OAuth client (only once).
The user is redirected to the callback URL you defined when registering your app's OAuth client.
Your application obtains an id_token and an access_token.
If you are using the XpansionChain SDK, all these steps are simplified by the passport.connectIMX()
function. You can find more information here: Integrate Login.
Last updated