Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
unik-namePublic archive

About

Demo app showing social authentication with Unik-Name solution

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

This the source code of Unik-Name OpenID Connect demo application.

Instructions

To install this example on your computer, clone the repository and install dependencies.

$ yarn install

Running the application

In development

$ node server.js

The application is configured to look for the Unik-Name Authentication server on http://localhost:8080/.

Open a web browser and navigate to http://localhost:3003/ to see the example in action.

NOTE: as routing between tenants is done with domain names, you mustn't load the application in your browser with use IP addresses.

Platform choice

In order to simulate the multiple 10x websites, (eg: www.platform101.net, www.platform101.net ...), you have to choose the launching "mode" of the application. Please change DEV_PORT and P10*_HOST_URL environment variables values in .env file

Default mode, for Platform101 mode:

DEV_PORT=3003
P101_HOST_URL=localhost:3003
P102_HOST_URL=localhost:3004

To configure for Platform102 mode:

DEV_PORT=3004
P101_HOST_URL=localhost:3003
P102_HOST_URL=localhost:3004

In other environments

$ NODE_ENV=myenv node server.js

where myenv can be:

  • integ for "integration" environment

Each environment must be configured in its own .env.myenv file (see .env or .env.integ files).

📝 License

Copyright © 2019 Space Elephant.
This project is MIT licensed.

About

Demo app showing social authentication with Unik-Name solution

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages