Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Search Search
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe Software
  • Platform
  • System
  • SearchSearch
  • Merge requests
  • !294

Fix for Swagger Authorization Issue

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Vibhuti Sharma [Microsoft] requested to merge users/Vibhuti/swagger-auth-fix-master into master Jun 16, 2022
  • Overview 2
  • Commits 1
  • Pipelines 4
  • Changes 1

Type of change

  • Bug Fix

Issue link - #95 (closed)

Does this introduce a change in the core logic?

  • Yes, it is a change in search-core module.

Does this introduce a change in the cloud provider implementation, if so which cloud?

  • It is a change in search-core module, so the change will be introduced in all CSPs.

Does this introduce a breaking change?

  • NO

What is the current behavior?

Querying any API through Swagger results in 403 response. This is due to the Authorization header not being picked up. The same API returns expected response through Postman or Curl.

What is the new/expected behavior?

Querying API through Swagger is returning expected response.

Have you added/updated Unit Tests and Integration Tests?

No

Any other useful information

In all other services, the authorizationScope selected for Swagger is "Authorization" (code link). However, in search it is "JWT" (code link)

Due to this, calling APIs through Swagger is resulting in 403 response. This MR aims at fixing this issue.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: users/Vibhuti/swagger-auth-fix-master