Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
webhooks
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
webhooks
Commits
706c0d19
Commit
706c0d19
authored
2 months ago
by
Stefan Auditor
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3452221
by scambler, sanduhrs: Not verifying token
parent
03601306
No related branches found
No related tags found
3 merge requests
!34
Issue #3302284 by sanduhrs, ant1, datawench, vrs11: Add possibility to set up...
,
!21
Draft: Issue #3164199 by sanduhrs: Add content type application/x-www-form-urlencoded
,
!19
Issue #3452221 by scambler, sanduhrs: Not verifying token
Pipeline
#503613
passed
2 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/WebhooksService.php
+1
-1
1 addition, 1 deletion
src/WebhooksService.php
with
1 addition
and
1 deletion
src/WebhooksService.php
+
1
−
1
View file @
706c0d19
...
...
@@ -280,7 +280,7 @@ class WebhooksService implements WebhookDispatcherInterface, WebhookReceiverInte
Webhook
::
verify
(
$webhook_config
->
getSecret
(),
$request
->
getContent
(),
$webhook
->
getSignature
());
}
// Legacy webhooks often only use a secret token.
elseif
(
$webhook_config
->
get
Secret
()
||
$webhook
->
getToken
())
{
elseif
(
$webhook_config
->
get
Token
()
||
$webhook
->
getToken
())
{
Webhook
::
verifyToken
(
$webhook_config
->
getToken
(),
$webhook
->
getToken
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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