Commit 041b2201 authored by Anton's avatar Anton

Remove UI_HOST env var, default for AUTH0_REDIRECT_URL now document.location.origin

parent 5d55000d
Pipeline #16120 passed with stage
......@@ -30,8 +30,6 @@ jobs:
- run:
name: Release Dev Image
environment:
AUTH0_REDIRECT_URL: https://dev.motionbank.org
UI_HOST: https://dev.motionbank.org
IS_STAGING: true
API_HOST: https://api-dev.motionbank.org
command: |
......@@ -52,10 +50,6 @@ jobs:
- run: *install-dependencies
- run:
name: Release Production Image
environment:
AUTH0_REDIRECT_URL: https://app.motionbank.org
UI_HOST: https://app.motionbank.org
API_HOST: https://api.motionbank.org
command: |
set +o pipefail
AUTH0_CLIENT_ID=${PROD_AUTH0_CLIENT_ID} SENTRY_DSN=${PROD_SENTRY_DSN} npm run build
......@@ -75,9 +69,7 @@ jobs:
- run:
name: Release Staging Image
environment:
AUTH0_REDIRECT_URL: https://staging.motionbank.org
IS_STAGING: true
UI_HOST: https://staging.motionbank.org
API_HOST: https://api-staging.motionbank.org
command: |
set +o pipefail
......
......@@ -65,7 +65,6 @@ module.exports = function (ctx) {
STORAGE_HOST: JSON.stringify(process.env.STORAGE_HOST || 'https://storage.motionbank.org'),
PACKAGER_HOST: JSON.stringify(process.env.PACKAGER_HOST || 'https://packager.motionbank.org'),
TRANSCODER_HOST: JSON.stringify(process.env.TRANSCODER_HOST || 'https://transcoder.motionbank.org'),
UI_HOST: JSON.stringify(process.env.UI_HOST || 'https://app.motionbank.org'),
//
// Resources
//
......@@ -77,7 +76,7 @@ module.exports = function (ctx) {
//
AUTH0_DOMAIN: JSON.stringify(process.env.AUTH0_DOMAIN || 'auth.motionbank.org'),
AUTH0_CLIENT_ID: JSON.stringify(process.env.AUTH0_CLIENT_ID || '80t5TRU9MVhGDVnZ522CvX4hutBxDB6U'),
AUTH0_REDIRECT_URL: JSON.stringify(process.env.AUTH0_REDIRECT_URL || 'https://app.motionbank.org/users/callback'),
AUTH0_REDIRECT_URL: JSON.stringify(process.env.AUTH0_REDIRECT_URL || null),
AUTH0_AUDIENCE: JSON.stringify(process.env.AUTH0_AUDIENCE || 'https://api.motionbank.org'),
//
// API Keys
......
......@@ -5,7 +5,7 @@ export default ({ Vue }) => {
auth: {
domain: process.env.AUTH0_DOMAIN,
clientID: process.env.AUTH0_CLIENT_ID,
redirectUri: process.env.AUTH0_REDIRECT_URL,
redirectUri: process.env.AUTH0_REDIRECT_URL || `${document.location.origin}/users/callback`,
audience: process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write',
responseType: 'token id_token'
......
......@@ -10,7 +10,7 @@ export default ({ Vue }) => {
authService = new AuthService({
domain: process.env.AUTH0_DOMAIN,
clientID: process.env.AUTH0_CLIENT_ID,
redirectUri: process.env.AUTH0_REDIRECT_URL,
redirectUri: process.env.AUTH0_REDIRECT_URL || `${document.location.origin}/users/callback`,
audience: process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write',
responseType: 'token id_token'
......
......@@ -50,7 +50,7 @@ else {
auth: {
domain: process.env.AUTH0_DOMAIN,
clientID: process.env.AUTH0_CLIENT_ID,
redirectUri: process.env.AUTH0_REDIRECT_URL,
redirectUri: process.env.AUTH0_REDIRECT_URL || `${document.location.origin}/users/callback`,
audience: process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write',
responseType: 'token id_token'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment