loopbackio / loopbackio/loopback-connector-rest

Pass auth header from client to loopback rest-connector

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

Nobody has claimed this yet.

backlog feature major
Dominant language
JavaScript
Stars
73
Forks
82
Avg merge
2d 1h
Merged PRs (30d)
6

Description

### Feature request
- "x" Feature request

### Description of feature (or steps to reproduce if bug)
Data can be passed to the rest-connector but it seems headers cannot. It would be useful to pass the Authorization header to the rest-connector for multi tenanted systems. Here is a link to what I am trying to do which promoted this request.

http://stackoverflow.com/questions/41573433/pass-basic-auth-from-angular-client-to-loopback-rest-connector

http://stackoverflow.com/questions/29899682/loopback-io-rest-connector-how-to-pass-through-oauth-token?

@bajtos

Contributor guide

Open the contributing guide

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 tracing how the rest-connector currently receives and forwards request data, then review the linked examples for Authorization-header pass-through. Done means the client’s Authorization header reaches the loopback REST request for multi-tenant use, with coverage for the forwarding behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
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.