Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
babc8fa1
Commit
babc8fa1
authored
4 years ago
by
Mihail Gorceag
Browse files
Options
Downloads
Patches
Plain Diff
fix: add logging for debugging purposes
parent
0727f4ad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/default.js
+0
-15
0 additions, 15 deletions
config/default.js
server/auth-orcid/orcid.js
+7
-0
7 additions, 0 deletions
server/auth-orcid/orcid.js
with
7 additions
and
15 deletions
config/default.js
+
0
−
15
View file @
babc8fa1
...
...
@@ -169,21 +169,6 @@ module.exports = {
port
,
}
=
cfg
[
'
pubsweet-client
'
]
// eslint-disable-next-line
console
.
log
(
'
-----------------------------
'
)
// eslint-disable-next-line
console
.
log
(
'
protocolToUse
'
)
// eslint-disable-next-line
console
.
log
(
protocolToUse
)
// eslint-disable-next-line
console
.
log
(
'
hostToUse
'
)
// eslint-disable-next-line
console
.
log
(
hostToUse
)
// eslint-disable-next-line
console
.
log
(
'
portToUse
'
)
// eslint-disable-next-line
console
.
log
(
portToUse
)
const
protocolToUse
=
publicProtocol
||
protocol
let
hostToUse
=
publicHost
||
host
||
'
localhost
'
if
(
hostToUse
===
'
0.0.0.0
'
)
hostToUse
=
'
localhost
'
...
...
This diff is collapsed.
Click to expand it.
server/auth-orcid/orcid.js
+
7
−
0
View file @
babc8fa1
...
...
@@ -9,6 +9,13 @@ const CALLBACK_URL = '/auth/orcid/callback'
module
.
exports
=
app
=>
{
// eslint-disable-next-line global-require
const
{
User
}
=
require
(
'
@pubsweet/models
'
)
// eslint-disable-next-line
console
.
log
(
'
---------------------------------
'
)
// eslint-disable-next-line
console
.
log
(
'
config get pubsweet client baseUrl
'
)
// eslint-disable-next-line
console
.
log
(
config
.
get
(
'
pubsweet-client.baseUrl
'
))
// set up OAuth client
passport
.
use
(
new
OrcidStrategy
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment