Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gateway
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
gateway
Commits
0328c5b7
Commit
0328c5b7
authored
2 years ago
by
Steve Reis
Browse files
Options
Downloads
Patches
Plain Diff
candidate version, remove console logs
parent
4ac9cdb2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/src/auth/auth.service.ts
+2
-4
2 additions, 4 deletions
api/src/auth/auth.service.ts
api/src/engine/connectors/datashield/datashield.connector.ts
+4
-4
4 additions, 4 deletions
api/src/engine/connectors/datashield/datashield.connector.ts
with
6 additions
and
8 deletions
api/src/auth/auth.service.ts
+
2
−
4
View file @
0328c5b7
...
@@ -93,9 +93,7 @@ export class AuthService {
...
@@ -93,9 +93,7 @@ export class AuthService {
payload
.
context
,
payload
.
context
,
);
);
console
.
log
(
'
isConnected
'
,
isConnected
);
if
(
!
isConnected
)
{
if
(
!
isConnected
)
{
console
.
log
(
'
User need to reconnect
'
);
throw
new
UnauthorizedException
(
'
User need to reconnect
'
);
throw
new
UnauthorizedException
(
'
User need to reconnect
'
);
}
}
...
@@ -109,8 +107,8 @@ export class AuthService {
...
@@ -109,8 +107,8 @@ export class AuthService {
}
}
return
this
.
login
(
payload
.
context
);
return
this
.
login
(
payload
.
context
);
}
catch
(
error
)
{
}
catch
(
error
)
{
cons
ole
.
log
(
error
)
;
cons
t
msg
=
error
.
message
??
'
Invalid refresh token
'
;
throw
new
UnauthorizedException
(
'
Invalid refresh token
'
);
throw
new
UnauthorizedException
(
msg
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
api/src/engine/connectors/datashield/datashield.connector.ts
+
4
−
4
View file @
0328c5b7
...
@@ -349,20 +349,20 @@ export default class DataShieldConnector implements Connector {
...
@@ -349,20 +349,20 @@ export default class DataShieldConnector implements Connector {
const
cookies
=
[
`sid=
${
user
.
extraFields
[
'
sid
'
]}
`
,
`user=
${
user
.
id
}
`
];
const
cookies
=
[
`sid=
${
user
.
extraFields
[
'
sid
'
]}
`
,
`user=
${
user
.
id
}
`
];
const
path
=
this
.
options
.
baseurl
+
'
getvars
'
;
const
path
=
this
.
options
.
baseurl
+
'
getvars
'
;
const
response
=
await
firstValueFrom
(
await
firstValueFrom
(
this
.
httpService
.
get
(
path
,
{
this
.
httpService
.
get
(
path
,
{
headers
:
{
headers
:
{
cookie
:
cookies
.
join
(
'
;
'
),
cookie
:
cookies
.
join
(
'
;
'
),
},
},
}),
}),
);
);
console
.
log
(
'
status
'
,
response
.
status
);
return
true
;
return
true
;
}
catch
(
err
)
{
}
catch
(
err
)
{
DataShieldConnector
.
logger
.
warn
(
DataShieldConnector
.
logger
.
verbose
(
`User
${
user
.
id
}
is not connected to Datashield`
,
`User
${
user
.
id
}
is not connected to Datashield`
,
);
);
DataShieldConnector
.
logger
.
warn
(
err
);
DataShieldConnector
.
logger
.
debug
(
err
);
return
false
;
return
false
;
}
}
}
}
...
...
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