Skip to content

Commit

Permalink
Merge pull request #216 from mcastany/fix-cnames-appliance
Browse files Browse the repository at this point in the history
Fix issue with custom domains in appliance
  • Loading branch information
Marcos Castany authored Mar 27, 2020
2 parents b61b03b + 84c2de1 commit d106a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default (storage) => {

// Allow end users to authenticate.
api.use(middlewares.authenticateUsers.optional({
domain: config('IS_APPLIANCE') ? config('AUTH0_DOMAIN') : config('AUTH0_CUSTOM_DOMAIN'),
domain: config('AUTH0_CUSTOM_DOMAIN') || config('AUTH0_DOMAIN'),
audience: config('EXTENSION_CLIENT_ID'),
credentialsRequired: false,
onLoginSuccess: (req, res, next) => {
Expand Down

0 comments on commit d106a3c

Please sign in to comment.