Draft: Migrate OAuth flow to use device authorization grant method

What does this MR do and why?

The change replaces the OAuth browser-based redirect flow with the device authorization grant flow, which provides a better auth experience. This removes the need to run a local HTTP server and simplifies token handling.

Key changes:

  • Implement device authorization flow per GitLab OAuth2 spec
  • Add polling mechanism for token retrieval
  • Remove PKCE and redirect handling code

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading