# Gitlab Intergration

**URL:** <https://drone.discourse.group/t/gitlab-intergration/9691>\
**Category:** Drone Support\
**Created:** [March 12, 2017, 12:15am UTC](https://drone.discourse.group/t/gitlab-intergration/9691 "2017-03-12T00:15:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paultech](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@paultech](https://drone.discourse.group/u/paultech)\
**Post date:** [March 12, 2017, 12:15am UTC](https://drone.discourse.group/t/gitlab-intergration/9691/1 "2017-03-12T00:15:59Z")

</div>

Hello Awesome people,

I’m having a slight issue after upgrading - Are there any known issues with drone + gitlab 8.17.3? I’m seeing “failure to parse token from hook for devs/repo. signature is invalid” on push hook. Do have my personal token setup in the gitlab integration portion and tcpdumping the incoming hook I get:

POST /api/hook?owner=devs&name=repo&access\_token=eyJhbkciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoicGF1bHRlY2giLCJ0eXBlIjoidXNlciJ9.B9EKK8QV3-LxURJNjNgQ9I2jRU-j7-nSCKhl2MwBLA8 HTTP/1.1  
Content-Type: application/json  
X-Gitlab-Event: Service Hook  
Connection: close  
Host: drone.build  
Content-Length: 2371

HTTP/1.1 400 Bad Request  
X-Content-Type-Options: nosniff  
X-Drone-Version: 0.5.0+909  
X-Frame-Options: DENY  
X-Xss-Protection: 1; mode=block

Thanks!

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 12, 2017, 2:19pm UTC](https://drone.discourse.group/t/gitlab-intergration/9691/2 "2017-03-12T14:19:52Z")

</div>

This error is not related to gitlab, and instead indicates a token issue. Note that you cannot use personal tokens for hooks. The hooks use a special token that can only be added by drone, and has the repository name embedded in the token signature

---

<div class="post-metadata">

**Author:** ![paultech](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@paultech](https://drone.discourse.group/u/paultech)\
**Post date:** [March 12, 2017, 3:09pm UTC](https://drone.discourse.group/t/gitlab-intergration/9691/3 "2017-03-12T15:09:12Z")

</div>

Hello,

Thank you @bradrydzewski, Where can I obtain the correct token?

---

<div class="post-metadata">

**Author:** ![paultech](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@paultech](https://drone.discourse.group/u/paultech)\
**Post date:** [March 12, 2017, 3:16pm UTC](https://drone.discourse.group/t/gitlab-intergration/9691/4 "2017-03-12T15:16:44Z")

</div>

@bradrydzewski Well, that was simple enough. Disabled and reactivated from drone UI and it appears to have configured the token itself. Strange it didn’t do that during round 1!

Thanks

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 12, 2017, 3:49pm UTC](https://drone.discourse.group/t/gitlab-intergration/9691/5 "2017-03-12T15:49:40Z")

</div>

When you enable a repository in the UI (via the toggle switches) drone automatically configures the hook with the correct token. Manual configuration is not possible
