# Bad response from token request after team creation auth

**URL:** <https://forum.mattermost.com/t/bad-response-from-token-request-after-team-creation-auth/895>\
**Category:** Troubleshooting\
**Created:** [February 14, 2016, 3:23pm UTC](https://forum.mattermost.com/t/bad-response-from-token-request-after-team-creation-auth/895 "2016-02-14T15:23:52Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![aus](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@aus](https://forum.mattermost.com/u/aus)\
**Post date:** [November 18, 2016, 10:19pm UTC](https://forum.mattermost.com/t/bad-response-from-token-request-after-team-creation-auth/895/21 "2016-11-18T22:19:51Z")

</div>

I also experienced this problem when switching my HTTP Gitlab instance over to HTTPS. I had to update my `/etc/gitlab.gitlab-secrets.json` to use HTTPS for the `*_endpoint` parameters. I don’t think Mattermost will follow the 302 on the token request if you’re redirecting HTTP to HTTPS. (and rightfully so)

---

_[View the full topic](https://forum.mattermost.com/t/bad-response-from-token-request-after-team-creation-auth/895)._
