Skip to content

Commit 8226d4c

Browse files
authored
Merge pull request #67 from scientist-softserv/65-deploy-with-new-url
65 deploy with new url
2 parents 4c15475 + a6b37a1 commit 8226d4c

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.env.development.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
CLIENT_DOMAIN= # Ref: "Creating The Marketplace App" in the README
12
CLIENT_ID= # Retrieved from the marketplace application show page under Developer Details
23
CLIENT_SECRET= # Retrieved from the marketplace application show page under Developer Details
34
NEXTAUTH_SECRET= # Create this by running `openssl rand -base64 32` in your terminal. (https://next-auth.js.org/configuration/options#nextauth_secret)
45
NEXTAUTH_URL= # https://next-auth.js.org/configuration/options#nextauth_url
56
NEXT_PUBLIC_TOKEN= # Ref: "Provider Credentials" in the README
6-
NEXT_PUBLIC_CLIENT_DOMAIN= # Ref: "Creating The Marketplace App" in the README
77

88
# uncomment the “SENTRY” prefixed variables below if you are using sentry and need to catch errors in local dev
99
# SENTRY_AUTH_TOKEN= ref: https://github.com/getsentry/sentry-webpack-plugin#options (authToken)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ _The terms "client" and "provider" are fairly interchangeable in this applicatio
4343

4444
| Name | Required | Location | Description |
4545
| ------------- | ------------- | ------------- | ------------- |
46+
| CLIENT_DOMAIN | No | .env.development | The domain attached to the Client App. Ref: Creating The Marketplace App |
4647
| CLIENT_ID | Yes | .env.development | The identifier of the client's marketplace application |
4748
| CLIENT_SECRET | Yes | .env.development | The secret related to the client's marketplace application |
4849
| NEXTAUTH_SECRET | Yes | .env.development | Used to encrypt the NextAuth.js JWT |
4950
| NEXTAUTH_URL | Yes | .env.development | The authentication route used for NextAuth.js |
5051
| NEXT_PUBLIC_APP_BASE_URL | Yes | .env | The URL to the deployed webstore instance |
51-
| NEXT_PUBLIC_CLIENT_DOMAIN | No | .env.development | The domain attached to the Client App. Ref: Creating The Marketplace App |
5252
| NEXT_PUBLIC_PROVIDER_ID | Yes | .env | The identifier of the client's marketplace in the database |
5353
| NEXT_PUBLIC_PROVIDER_NAME | Yes | .env | The subdomain of the client's marketplace |
5454
| NEXT_PUBLIC_SCIENTIST_API_VERSION | Yes | .env | The version of the API we should be talking to |
@@ -61,7 +61,7 @@ _The terms "client" and "provider" are fairly interchangeable in this applicatio
6161
| SENTRY_URL | No | .env.development | The base URL of the Sentry instance |
6262

6363
### Creating The Marketplace App
64-
Ensure that a marketplace, e.g. client-name.<NEXT_PUBLIC_CLIENT_DOMAIN>.com, has been created by the Scientist.com Professional Services team. Once that exists, an application needs to be created on that marketplace by a developer with the proper permissions. This is how some of the environment variables are created. You'll know if you have the proper developer permissions if once logged in on the client marketplace, you can hover over your avatar and see "Applications" underneath the "Developer" settings. _If you don't have the permissions, you need to request them, or ask someone with the permissions to complete the steps below._
64+
Ensure that a marketplace, e.g. client-name.<CLIENT_DOMAIN>.com, has been created by the Scientist.com Professional Services team. Once that exists, an application needs to be created on that marketplace by a developer with the proper permissions. This is how some of the environment variables are created. You'll know if you have the proper developer permissions if once logged in on the client marketplace, you can hover over your avatar and see "Applications" underneath the "Developer" settings. _If you don't have the permissions, you need to request them, or ask someone with the permissions to complete the steps below._
6565
- Once you've clicked the "Applications" link mentioned above, press "New Application"
6666
- Only the application name is required for the moment. Name it the same as the provider name.
6767
- Save, and you should be redirected to the "Developer Details" page

ops/production-deploy.tmpl.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appBaseUrl: 'https://store.phenovista.com'
2+
clientDomain: 'assayexpress.com'
23
clientId: $CLIENT_ID
34
clientSecret: $CLIENT_SECRET
45
googleTagManagerId: 'GTM-PQGCP24G'

ops/staging-deploy.tmpl.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appBaseUrl: 'https://phenovista-staging.softserv.cloud'
2+
clientDomain: 'assayexpress.com'
23
clientId: $CLIENT_ID
34
clientSecret: $CLIENT_SECRET
45
googleTagManagerId: ''

pages/api/auth/[...nextauth].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import NextAuth from 'next-auth'
22
import axios from 'axios'
33
// TODO(alishaevn): use the api value from https://github.com/assaydepot/rx/issues/21497 in the next phase
44
import { EXPIRATION_DURATION, getWebhookConfig, createWebhookConfig } from '../../../utils'
5-
const authorizationDomain = process.env.NEXT_PUBLIC_CLIENT_DOMAIN || 'scientist.com'
5+
const authorizationDomain = process.env.CLIENT_DOMAIN || 'scientist.com'
66

77
// For more information on each option (and a full list of options) go to: https://next-auth.js.org/configuration/options
88
const authOptions = {

0 commit comments

Comments
 (0)