Gitlab Pages returned The redirect URI included is not valid.

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 Pages configuration in gitlab.rb:

pages_external_url "http://pages.domain.int.example.ru"
 gitlab_pages['enable'] = true
 gitlab_pages['redirect_http'] = false
 gitlab_pages['access_control'] = true
 pages_nginx['enable'] = false

I have tried enabling access control at the project level (by selecting Project Members Only for Pages content), and at the instance level (by enabling the Disable public access to Pages sites option in the Admin area).

and i did the opposite `Enable public access to Pages sites option in the Admin area

What is the current bug behavior? The CI job successfully ran and deployed the content to Pages, and I'm trying to get index.html but I get an error like The redirect URI included is not valid

NGINX LOG GET /auth?domain=http://domain.int.example.ru&state=uZQbojxqYoBftlVH6YyknQ== HTTP/1.1" 401 2884 "http://domain.int.example.ru/api/v4/jobs/request" "gitlab-runner 11.7.0 (11-7-stable; go1.8.7; windows/amd64)".

If you go to Admin Area - Applications - Callback url i can see url http://projects.domain.int.example.ru/auth

What is the expected correct behavior? I can see the content of index.html if i logged into Gitlab.

Gittlab environment info

GitLab 13.5.3-ee (b9d194b6b91)

GitLab Shell 13.11.0

GitLab Workhorse v8.51.0

GitLab API v4

GitLab Pages 1.28.0

Ruby 2.6.6p146

Rails 6.0.3.3

PostgreSQL 11.9 
Edited by Djam36