Skip to content

Commit

Permalink
fix the authorization flow
Browse files Browse the repository at this point in the history
with this commit we will now be redirected back to store.phenovista.com
after signing in, instead of being redirected to phenovista.softserv.cloud.
I tested this change on production to confirm it works.

ref:
- #46
  • Loading branch information
alishaevn committed Feb 7, 2024
1 parent 5fcbe73 commit c661be7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# reference https://nextjs.org/docs/basic-features/environment-variables#exposing-environment-variables-to-the-browser
# to learn about the NEXT_PUBLIC prefix

# Ref: https://github.com/scientist-softserv/webstore/wiki/Deployment#when-using-a-cname
# when deploying to a custom domain.
NEXT_PUBLIC_APP_BASE_URL=https://store.webstore.com
NEXT_PUBLIC_PROVIDER_ID=0001
NEXT_PUBLIC_PROVIDER_NAME=webstore
Expand Down
4 changes: 2 additions & 2 deletions ops/production-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
appBaseUrl: 'https://phenovista.softserv.cloud'
appBaseUrl: 'https://store.phenovista.com'
clientId: $CLIENT_ID
clientSecret: $CLIENT_SECRET
googleTagManagerId: 'GTM-PQGCP24G'
nextAuthSecret: $NEXTAUTH_SECRET
nextAuthUrl: 'https://phenovista.softserv.cloud/api/auth'
nextAuthUrl: 'https://store.phenovista.com/api/auth'
nextPublicToken: $NEXT_PUBLIC_TOKEN
providerId: '12527'
providerName: 'phenovista'
Expand Down

0 comments on commit c661be7

Please sign in to comment.