Demo for Zaikio OAuth flow and app installation per organization.
First you must create an app in hub.zaikio.com.
Then you need to copy your HUB_OAUTH_CLIENT_ID
and HUB_OAUTH_CLIENT_SECRET
to an .env
file.
$ cp .env.example .env
It is important that you add your URL to the Redirect URLs
in Directory.
For this test project you need to add http://localhost:8080/oauth/callback
and =http://localhost:8080/oauth/org-callback
.
You need to add the following desired scopes: zaikio.person.r
, zaikio.organization.r
.
Install the dependencies and run the dev server.
$ npm install
$ npm run start