English | 简体中文
This Demo will show you how to use Authing's Multi-tenant management through a multi -tenant journey.
Login to the Authing Console, select the ToB userpool, and enter the Back-Console.
Modify the /client/CONFIG_ME_FIRST.ts
file, modify the following configuration:
// Here is used to configure external source related variable configuration information
export default {
/** APP ID */
appId: "<your app id>",
};
For more front-end configuration see /client/.env
environment variables. Generally, special configurations are not required. If special configuration is required, you can create a new copy and store them in the local area.
Copy the /server/.env-example
file and renamed/server/.env
.
The configuration parameter description is as follows:
Name | Illustrate | Whether to configure |
---|---|---|
DEMO_SERVER_PORT | Listening port | false |
DEMO_LOGIN_CALLBACK_HOST | Log in to complete the callback domain name | false |
DEMO_FRONTEND_CALLBACK_URL | After the fron-end login is successful, call back the URL | false |
DEMO_AUTHING_USERPOOL_ID | Userpool ID | true |
DEMO_AUTHING_APP_ID | APP ID | true |
DEMO_AUTHING_APP_SECRET | APP Secret | true |
DEMO_AUTHING_API_ENDPOINT | Authing API server address | true |
Note: Application here to log in to adjust URL needs to fill in the address of the back -end of the project's business http:localhost:3010/auth/callback
// npm (The Install will be automatically executed by default, no additional Install is required)
npm run start
// yarn
// yarn start
// pnpm
// pnpm start
-
Front-end
// Open a terminal cd client pnpm install pnpm start
-
Back-end
// Open another terminal cd server pnpm install pnpm start
Visit http://localhost:3009
Copyright (c) 2023-present, Authing