Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making modifications to make port for the redirect URI configurable b… #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions okta-hosted-login/config/prod.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ process.env.CLIENT_ID = process.env.CLIENT_ID || process.env.SPA_CLIENT_ID;
process.env[key] = JSON.stringify(process.env[key]) // ensure variable is a string
})

const { CLIENT_ID, ISSUER } = process.env
const { CLIENT_ID, ISSUER, PORT } = process.env

module.exports = {
NODE_ENV: '"production"',
CLIENT_ID,
ISSUER
ISSUER,
PORT
}
4 changes: 2 additions & 2 deletions okta-hosted-login/src/config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { CLIENT_ID, ISSUER } = process.env
const { CLIENT_ID, ISSUER, PORT } = process.env

export default {
oidc: {
clientId: CLIENT_ID,
issuer: ISSUER,
redirectUri: 'http://localhost:8080/implicit/callback',
redirectUri: 'http://localhost:' + PORT + '/implicit/callback',
scopes: ['openid', 'profile', 'email'],
pkce: true,
testing: {
Expand Down