|
|
|
@ -99,7 +99,7 @@ class CoreNodeService extends SiteService {
|
|
|
|
|
const authorizationHost = `${core.address.host}:${core.address.port}`;
|
|
|
|
|
const authorizationURL = `${AUTH_SCHEME}://${authorizationHost}/oauth2/authorize`;
|
|
|
|
|
const tokenURL = `${AUTH_SCHEME}://${authorizationHost}/oauth2/token`;
|
|
|
|
|
const callbackURL = `${AUTH_SCHEME}://${process.env.DTP_SITE_DOMAIN}/auth/core/${core._id}/welcome`;
|
|
|
|
|
const callbackURL = `${AUTH_SCHEME}://${process.env.DTP_SITE_DOMAIN}/auth/core/${core._id}/callback`;
|
|
|
|
|
|
|
|
|
|
const coreAuthStrategy = new OAuth2Strategy(
|
|
|
|
|
{
|
|
|
|
|