inrupt / inrupt/solid-client-authn-js

Ability to retrieve Authorization and Dpop headers

Open
#1,190 9 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
77
Forks
49
Avg merge
18h 20m
Merged PRs (30d)
32

Description

Search terms you've used

I posed a question to https://gitter.im/solid/app-development on 18-Mar-2021.

Impacted environment

In which environment would the proposed feature apply ?

  • [ X] The browser
  • Node.js
  • Other (please specify): ...
  • I'm not sure.
Feature suggestion

A way to use @inrupt/solid-client-authn-browser to retrieve the Authorization: and Dpop: headers without making the fetch. I want to put those headers into another e.g. PUT call generated by a 3rd party library.

Expected functionality/enhancement

I could call a JS function/method from my browser code to retrieve the headers which I could then add during events generated but a 3rd party library like Dropzone.

Actual functionality/enhancement

The capability doesn't currently exist.

Use Cases

During a Dropzone initialization event of a file upload the ability exists to modify the request headers. If I had the ability to retrieve the Authorization: and Dpop: headers I could add them to the request headers during this event creating a solid authenticated request.

The ability to etrieve the Authorization: and Dpop: headers without making a fetch doesn't currently exist in @inrupt/solid-client-authn-browser

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 reading the @inrupt/solid-client-authn-browser authentication entry points and the existing fetch flow. Determine how Authorization and Dpop headers are produced, then define and test a browser-facing way to retrieve them for third-party requests such as Dropzone uploads.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.