question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gitlab pkce backend not passing client_id to gitlab

See original GitHub issue

Describe the bug Using Gitlab

To Reproduce

Expected behavior

Screenshots Using Gitlab self hosted as a backend for Netlify CMS is resulting in and error message of Missing required parameter: client_id.

image

How to reproduce:

  1. Once clicking on “Login with GitLab”
  2. Get redirected to `https://{{gitlab-domain}}/oauth/authorize?provider=gitlab&site_id=cms.netlify.com&scope=api
  3. Get error

Following the docs from here: https://www.netlifycms.org/docs/gitlab-backend/#client-side-pkce-authorization

Applicable Versions:

  • Netlify CMS version: netlify-cms-app 2.9.7
  • Git provider: Gitlab 14.6.0-ee (self hosted)
  • OS: MacOS 12.1
  • Browser version: Firefox 95.0.2, Chrome 97.0.4692.99
  • Node.JS version: NPM 8.3.2

CMS configuration Sensitive info changed to vars

backend:
  name: gitlab
  repo: {{the-group-name-here}}/articles
  auth_type: pkce
  app_id: {{app-id-goes-here}}
  api_root: https://{{gitlab-domain}}/api/v4
  base_url: https://{{gitlab-domain}}
  auth_endpoint: oauth/authorize
  branch: develop

Additional context Here is the Gitlab config: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
mryanbcommented, Mar 18, 2022

Resolved with an updated version of Netlify CMS.

0reactions
pplupocommented, Aug 10, 2022

No, davli921. It doesn’t.

Peter P. Lupo Software Engineer, M.Sc. Certified ScrumMaster / Sun Certified Associate for Java Platform MPS.BR Authorized Appraiser and Implementation Practitioner +1 647-676-3699 http://www.pplupo.com

On Tue, Aug 9, 2022 at 8:26 PM davli921 @.***> wrote:

Does the page has to be hosted on Netlify to use Gitlab Backend as Oauth client for Netlify CMS?

— Reply to this email directly, view it on GitHub https://github.com/netlify/netlify-cms/issues/6158#issuecomment-1210018851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZBNJLIVPSIMSFW5YG4LVDVYLZKHANCNFSM5MZCBITA . You are receiving this because you were mentioned.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth 2.0 identity provider API - GitLab Docs
Supported OAuth 2.0 flows. GitLab supports the following authorization flows: Authorization code with Proof Key for Code Exchange (PKCE): Most secure.
Read more >
Configure GitLab as an OAuth 2.0 authentication identity ...
Navigate to the desired group. · On the left sidebar, select Settings > Applications. · Enter a Name, Redirect URI and OAuth 2...
Read more >
Support PKCE in the API for more secure connections - GitLab
Problem to solve. Many users want to create GitLab Pages sites, or other static sites, or mobile apps, to access the GitLab API....
Read more >
unauthorized: authentication required on docker push ... - GitLab
I'm creating two docker images via gitlab-ci from one repository upon pushing them to GitLabs private container registry. The .gitlab-ci.yml ...
Read more >
Generic OAuth 2.0 provider - GitLab Docs
Can only be used for single sign-on, and does not provide any other access granted by any ... You should now be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found