I was having trouble with this too. Setting the Redirect URI field to the following did the trick:

http://localhost:3000/api/auth/callback/gitlab

Discussions

GitLab Redirect URI for project import invalid
I created my own GitLab CE Instance ... on “GitLab.com” in the Import Project View I get redirected to GitLab.com with the error “The redirect URI included is not valid.” I tried various solutions from google (like adding a / at the end) but none of them worked. ... More on forum.gitlab.com
🌐 forum.gitlab.com
5
0
July 24, 2021
spring boot - The redirect URI included is not valid - Stack Overflow
I am trying to use GitLab OAuth2 with Spring Boot, but I am continuously getting: redirected uri is invalid I already registered the app in GitLab. Here is my application.yml security: oauth... More on stackoverflow.com
🌐 stackoverflow.com
Oauth application redirect uri
Here it explains you need to put it and I have tested - it is a mandatory and it needs to be exact same as callback url from Oauth Application. If you do not include it, you will get error “The redirect URI included is not valid.” So why? There already is an application id in request url. More on forum.gitlab.com
🌐 forum.gitlab.com
2
0
August 8, 2017
GItlab as Omniauth provider, always says "The redirect URI included is not valid."
I have an rails application that have login with gitlab function but when I trying to login with gitlab it always give this error message An error has occured The redirect URI included is not valid. I use this gem as my omniauth strategy I have tried to use gitlab.com and my own gitlab(using ... More on forum.gitlab.com
🌐 forum.gitlab.com
3
1
March 19, 2016
🌐
Reddit
reddit.com › r/gitlab › gitlab pages 'the redirect uri included is not valid.'
r/gitlab on Reddit: Gitlab Pages 'The redirect URI included is not valid.'
April 25, 2023 -

Hey guys,

I'm working on a migration of our Gitlab CE instance from a docker compose environment to a dedicated EC2 Runner and Server.

I've got everything working so for except Gitlab Pages. I've followed the documentation here: https://docs.gitlab.com/ee/administration/pages/

I've created the following DNS records.

A record for Gitlab git.dev.company.cloud

A record for Gitlab Pages gitdocs.dev.company.cloud

A record for wildcard *.gitdocs.dev.company.cloud

The omnibus configuration file contains: pages_external_url 'http://gitdocs.dev.company.cloud'

I navigate to the pages section of a project and click on the URL. A redirect begins, but instead of sending me to pages it sends me to my user page and displays:

An error has occurred
The redirect URI included is not valid.

The NGINX logs for pages show a 302 redirect, but that is about it...

Any help would be much appreciated!!

🌐
GitLab
gitlab.com › gitlab.org › #218373
"The redirect URI included is not valid" error when setting up GItLab Pages without wildcards (#218373) · Issues · GitLab.org / GitLab · GitLab
May 19, 2020 - ### Summary When setting up GitLab Pages manually without a wildcard DNS record, we always receive a `The redirect URI included is not valid` error during authentication for GitLab Pages behind access restrictions. ### Steps to reproduce We have a self-hosted GitLab instance and would like to add Pages support.
🌐
GitLab
gitlab.com › gitlab.org › #362531
An error has occurred: The redirect URI included is not valid for Gitlab pages App (#362531) · Issues · GitLab.org / GitLab · GitLab
But when I click on the sign link on the Gitlab page it does redirect to similar URL as below as per the above documentation https://gitlab.example.com/oauth/authorize?client_id=APP_ID&redirect_uri=REDIRECT_URI&response_type=code&state=STATE&scope=REQUESTED_SCOPES&code_challenge=CODE_CHALLENGE&code_challenge_method=S256 and it takes me to User Settings page and displays following error An error has occurred The redirect URI included is not valid.
🌐
GitLab
forum.gitlab.com › how to use gitlab › migrations
GitLab Redirect URI for project import invalid - Migrations - GitLab Forum
July 24, 2021 - I created my own GitLab CE Instance and want to setup the importer for my projects from GitLab.com I followed all steps from Integrate your server with GitLab.com | GitLab (which are quite unclear in my opinion) but when I click on “GitLab.com” in the Import Project View I get redirected to GitLab.com with the error “The redirect URI included is not valid.” I tried various solutions from google (like adding a / at the end) but none of them worked. http://code.xxxx.yyy/import/gitlab/callback h...
🌐
GitLab
gitlab.com › gitlab.org › #231603
Gitlab Applications Redirect URI not a valid URI (#231603) · Issues · GitLab.org / GitLab · GitLab
July 24, 2020 - Hi : On gitlab.com I created an OAuth application, named drone.pegasusio.io, with redirect URI http://drone.pegasusio.io/login I bought the
🌐
GitLab
gitlab.com › gitlab.org › #7559
'The redirect URI included is not valid.' error OAuth'ng a secondary (#7559) · Issues · GitLab.org / GitLab · GitLab
Summary For a Geo setup, when adding a secondary, if the original URL is entered incorrectly (e.g https://ee-secondary1x.local) but then...
Find elsewhere
🌐
GitLab
forum.gitlab.com › how to use gitlab
Oauth application redirect uri - How to Use GitLab - GitLab Forum
August 8, 2017 - Here it explains you need to put ... will get error “The redirect URI included is not valid.” So why? There already is an application id in request url....
🌐
GitLab
gitlab.com › gitlab.org › omnibus-gitlab › #4107
gitlab pages with access control shows a not valid redirect url (#4107) · Issues · GitLab.org / omnibus-gitlab · GitLab
Summary From a custom server gitlab, when enabling the access control for Gitlab Pages, on every other permission than 'Everyone' in...
🌐
GitLab
forum.gitlab.com › how to use gitlab
GItlab as Omniauth provider, always says "The redirect URI included is not valid." - How to Use GitLab - GitLab Forum
March 19, 2016 - I have an rails application that have login with gitlab function but when I trying to login with gitlab it always give this error message An error has occured The redirect URI included is not valid. I use this gem as my omniauth strategy I have tried to use gitlab.com and my own gitlab(using ...
🌐
GitLab
gitlab.com › gitlab.org › #325211
Gitlab Pages returned The redirect URI included is not valid. (#325211) · Issues · GitLab.org / GitLab · GitLab
Summary I have Pages access control enabled on my self-hosted GitLab instance, but it has no effect Steps to reproduce I have the following...
🌐
GitLab
gitlab.com › gitlab.org › gitlab foss › #20292
"The redirect URI included is not valid" error if redirect_uri contains query parameters like "?foo=bar" (#20292) · Issues · GitLab.org / GitLab FOSS · GitLab
https://gitlab.com/oauth/authorize?client_id=ae8d3d1953eed4d843064883a3879ec4b7f9b149b88a5bb0ae09bbd278976fb9&redirect_uri=http://drulenium.org/abcd?foo=bar&response_type=code throws ```The redirect URI included is not valid.``` Application Callback url: ```http://drulenium.org/abcd?foo=bar``` It works if I remove the query parameters in both places but http://hybridauth.sourceforge.net/index.html needs to have Callback URL like ```http://mywebsite.com/path_to_hybridauth/?hauth.done=Github``` http://hybridauth.sourceforge.net/userguide/IDProvider_info_Github.html
🌐
Mattermost
forum.mattermost.com › troubleshooting
[Solved] "The redirect URI included is not valid." after mmost URL change - Troubleshooting - Mattermost Discussion Forums
February 23, 2016 - Hey, this issue has popped up here and here, but neither have answers that apply to me (I don’t think.) I don’t have a proxy in place, and I’m at the current version, so I can’t update right now. GitLab 8.4.4 I changed the url of mattermost from old.mydomain.com to new.mydomain.com in /etc/gitlab/gitlab.rb mattermost_external_url 'https://new.mydomain.com' When I go to https://new.mydomain.com/myteam I get directed to the correct "Sign in to myteam on gitlab mattermost ‘with gitlab’ ". Whe...
🌐
GitHub
github.com › can1357 › oh-my-pi › issues › 2424
GitLab Duo OAuth login fails: The redirect URI included is not valid · Issue #2424 · can1357/oh-my-pi
June 12, 2026 - Additional issue: If port 8080 ... URI matching. ... Register/update the GitLab OAuth app to include http://localhost:8080/callback and http://127.0.0.1:8080/callback as valid redirect URIs....
Author: can1357
🌐
GitHub
github.com › GitLiveApp › GitLive › issues › 84
GitLab Integration: The redirect URI included is not valid · Issue #84 · GitLiveApp/GitLive
September 20, 2021 - From https://git.live/ scroll down to GitLab in the “Integrate Your Stack” section. Click on “Integrate Now” for GitLab. After authenticating to GitLab, the following is received: An error has occurred The redirect URI included is not valid.
Author: GitLiveApp
🌐
GitHub
github.com › PostHog › posthog › issues › 4049
Gitlab OAuth claims "The redirect URI included is not valid" · Issue #4049 · PostHog/posthog
April 20, 2021 - Bug description Gitlab OAuth configured using official guide. Trying to login with Gitlab produces The redirect URI included is not valid error. The URL includes a seemingly malformed redirect_uri parameter that: uses http:// instead of ...
Author: PostHog
🌐
GitLab
forum.gitlab.com › how to use gitlab › self-managed
"The redirect URI is not valid" error with self-managed GitLab and OAuth Server on EC2 - Self-managed - GitLab Forum
July 22, 2024 - Problem to solve Hello, I’ve been spending a lot of days trying to figure this one out but still haven’t gotten there. I want to use a self-managed GitLab instance for authentication before accessing the CMS of my website. The GitLab is running on a physical server, while the OAuth server ...
🌐
GitHub
github.com › apache › airflow › discussions › 21719
OAUTH : Gitlab (self hosted) "The redirect URI included is not valid" · apache/airflow · Discussion #21719
February 21, 2022 - OAUTH_PROVIDERS = [{ 'name':'Gitlab', 'icon':'fa-gitlab', 'token_key': 'access_token', 'remote_app': { 'api_base_url':'https://gitlab.mydomain/api/v4/', 'client_kwargs': { 'scope': 'api' }, 'access_token_url':'https://gitlab.mydomain/oauth/token', 'authorize_url':'https://gitlab.mydomain/oauth/authorize', 'request_token_url': None, 'client_id': 'XXXXXXXXXX', 'client_secret': 'XXXXXXXXXX', } }] Can anybody help me with his current configuration? ... Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... My redirect URI is : https:/gitlab.mydomain/oauth/authorize?response_type=code&client_id=1cc8f04dexxxxxxxxxxxxxxxxxxx0fa9a2&redirect_uri=https://airflow.mydomain/oauth-authorized/gitlab&scope=api+email&state=eyxxxxxxxxxxx.eyyyyyyyyyyyy-zzzzzzzzz
Author: apache