Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 996
    • Issues 996
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #2180

Closed
Open
Created Nov 13, 2020 by totten@tottenOwner

Add end-to-end test coverage for OAuth grant flows

Overview

Expand test-coverage of oauth-client.

Current behavior

The oauth-client includes unit-tests for several specific parts of processing OAuth2. However, it does not have an end-to-end test to interact with a concrete, remote service.

Proposed behavior

Define a mock OAuth2 service provider.

The automated tests for oauth-client should include a case which (1) registers details for the provider, (2) requests a token, and (3) uses it. Repeat for each grant-type (authorizationCode, userPassword, clientCredentials).

Comments

During development, I used https://github.com/bshaffer/oauth2-demo-php as a mock service, so it may be worth a look. But if something else looks more amenable, that's great.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None