Skip to content

Fix for Swagger Authorization Issue

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.

Merge request reports