Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoBackendAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Backend
DojoBackendAPI
Compare revisions
fd49131b748706b9aa2328ceb05a33310f1be60b to 3fcb802a2a836d3dadf1aeff2300623db66a79f0
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dojo_project/projects/backend/dojobackendapi
Select target project
No results found
3fcb802a2a836d3dadf1aeff2300623db66a79f0
Select Git revision
Branches
add_route_assignments
ask-user-to-delete-exercises-on-duplicates
bedran_exercise-list
jw_sonar
jw_sonar_backup
main
update-dependencies
v6.0.0
Tags
2.0.0
2.1.0
2.2.0
3.0.0
3.0.1
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.3.0
3.4.0
3.4.1
3.4.2
3.5.0
3.5.1
3.5.2
3.5.3
4.0.0
4.1.0
5.0.0
5.0.1
6.0.0-dev
v1.0.1
32 results
Swap
Target
dojo_project/projects/backend/dojobackendapi
Select target project
Dojo_Project_Nguyen/backend/dojobackendapi
dojo_project/projects/backend/dojobackendapi
2 results
fd49131b748706b9aa2328ceb05a33310f1be60b
Select Git revision
Branches
add_route_assignments
ask-user-to-delete-exercises-on-duplicates
bedran_exercise-list
jw_sonar
jw_sonar_backup
main
update-dependencies
v6.0.0
Tags
2.0.0
2.1.0
2.2.0
3.0.0
3.0.1
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.3.0
3.4.0
3.4.1
3.4.2
3.5.0
3.5.1
3.5.2
3.5.3
4.0.0
4.1.0
5.0.0
5.0.1
6.0.0-dev
v1.0.1
32 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
HttpManager => Fix exercice secret header name
· 84be614d
michael.minelli
authored
1 year ago
84be614d
Merge branch 'fix-header-name' into v3.1.1
· cba6f12d
michael.minelli
authored
1 year ago
cba6f12d
Merge branch 'v3.1.1' into main
· 3fcb802a
michael.minelli
authored
1 year ago
3fcb802a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ExpressAPI/assets/OpenAPI/OpenAPI.yaml
+1
-1
1 addition, 1 deletion
ExpressAPI/assets/OpenAPI/OpenAPI.yaml
ExpressAPI/package.json
+1
-1
1 addition, 1 deletion
ExpressAPI/package.json
ExpressAPI/src/middlewares/SecurityMiddleware.ts
+1
-1
1 addition, 1 deletion
ExpressAPI/src/middlewares/SecurityMiddleware.ts
with
3 additions
and
3 deletions
ExpressAPI/assets/OpenAPI/OpenAPI.yaml
View file @
3fcb802a
...
@@ -530,7 +530,7 @@ components:
...
@@ -530,7 +530,7 @@ components:
ExerciseChecker_Secret
:
ExerciseChecker_Secret
:
type
:
apiKey
type
:
apiKey
in
:
header
in
:
header
name
:
E
xercise
S
ecret
name
:
e
xercise
s
ecret
parameters
:
parameters
:
gitlabProjectIdOrNamespace
:
gitlabProjectIdOrNamespace
:
name
:
gitlabProjectIdOrNamespace
name
:
gitlabProjectIdOrNamespace
...
...
This diff is collapsed.
Click to expand it.
ExpressAPI/package.json
View file @
3fcb802a
{
{
"name"
:
"dojo_backend_api"
,
"name"
:
"dojo_backend_api"
,
"description"
:
"Backend API of the Dojo project"
,
"description"
:
"Backend API of the Dojo project"
,
"version"
:
"3.1.
0
"
,
"version"
:
"3.1.
1
"
,
"license"
:
"AGPLv3"
,
"license"
:
"AGPLv3"
,
"author"
:
"Michaël Minelli <dojo@minelli.me>"
,
"author"
:
"Michaël Minelli <dojo@minelli.me>"
,
"main"
:
"dist/src/app.js"
,
"main"
:
"dist/src/app.js"
,
...
...
This diff is collapsed.
Click to expand it.
ExpressAPI/src/middlewares/SecurityMiddleware.ts
View file @
3fcb802a
...
@@ -31,7 +31,7 @@ class SecurityMiddleware {
...
@@ -31,7 +31,7 @@ class SecurityMiddleware {
isAllowed
=
isAllowed
||
(
req
.
boundParams
.
assignment
?.
published
??
false
);
isAllowed
=
isAllowed
||
(
req
.
boundParams
.
assignment
?.
published
??
false
);
break
;
break
;
case
SecurityCheckType
.
EXERCISE_SECRET
:
case
SecurityCheckType
.
EXERCISE_SECRET
:
isAllowed
=
isAllowed
||
(
req
.
headers
.
E
xercise
S
ecret
as
string
|
undefined
)
===
req
.
boundParams
.
exercise
!
.
secret
;
isAllowed
=
isAllowed
||
(
req
.
headers
.
e
xercise
s
ecret
as
string
|
undefined
)
===
req
.
boundParams
.
exercise
!
.
secret
;
break
;
break
;
default
:
default
:
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.