Third party authentication with GitLab - GITLAB_BASE_URI problem #2225

Closed
opened 2026-02-05 03:22:28 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @yunchi-cheng on GitHub (Apr 29, 2021).

I follow the steps on the official documentation, setup the environment, and got an ERR_INVALID_REDIRECT when trying to login with GitLab.
It turns out that a trailing / is required for GITLAB_BASE_URI, which the documentation did not specify & the sample in the documentation did not have a trailing /.

Note 1: My gitlab base uri is something like https://my-domain.com:30000, maybe that port caused the bug?
Note 2: BookStack v0.31.6

Originally created by @yunchi-cheng on GitHub (Apr 29, 2021). I follow the steps on [the official documentation](https://www.bookstackapp.com/docs/admin/third-party-auth/#gitlab), setup the environment, and got an ERR_INVALID_REDIRECT when trying to login with GitLab. It turns out that a trailing `/` is required for `GITLAB_BASE_URI`, which the documentation did not specify & the sample in the documentation did not have a trailing `/`. Note 1: My gitlab base uri is something like `https://my-domain.com:30000`, maybe that port caused the bug? Note 2: BookStack `v0.31.6`
OVERLORD added the 📖 Docs Update label 2026-02-05 03:22:28 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 1, 2021):

Thanks for raising @george-ycc. Can confirm, was not specific to a custom port.

I've now updated the documentation with an updated example, that includes the trailing slash, and some supporting text to specify the slash is required.

@ssddanbrown commented on GitHub (May 1, 2021): Thanks for raising @george-ycc. Can confirm, was not specific to a custom port. I've now updated the documentation with an updated example, that includes the trailing slash, and some supporting text to specify the slash is required.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2225