createGitlabTokenValidator()
Home > @backstage/plugin-events-backend-module-gitlab
> createGitlabTokenValidator
Validates a configured secret token against the token received with the x-gitlab-token
header.
See https://docs.gitlab.com/ee/user/project/integrations/webhooks.html\#validate-payloads-by-using-a-secret-token for more details.
Signature:
function createGitlabTokenValidator(config: Config): RequestValidator;
Parameters
Parameter |
Type |
Description |
---|---|---|
config |
root config |