dataiku / dataiku/dss-plugin-api-connect

Redirect Causes a Lost Authorization Header

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4
Forks
4
Avg merge
3d 21h
Merged PRs (30d)
1

Description

The API we're consuming has a base URL we initially hit but are then redirected to version-specific URL where the API request is ultimately made. If we use the base URL with the plugin, we're getting a 401 error, because the authorization header is not being passed to the redirected URL. This is similar to the StackOverflow article here: https://stackoverflow.com/questions/28564961/authorization-header-is-lost-on-redirect

Postman solves this by having a checkbox to explicitly allow this if the user requires. I'm assuming it is slightly less secure, so having it off by default may make sense here as well.

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the 401 response when an API request follows a redirect from the base URL, and inspect the request flow that handles redirected URLs. Compare the behavior with the linked Stack Overflow example and Postman's explicit option; done means the authorization behavior is defined and the redirected request no longer unexpectedly fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.