question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation for Credentials

See original GitHub issue

We would like to be able to pass in CallCredentials to Grpc-web requests. I see that the Client objects support taking a credentials argument:

` /**

  • @private @const {?Object} The credentials to be used to connect
  • to the server */ this.credentials_ = credentials;`

But I don’t see that this is used anywhere. We’re looking to add in a metadata Authorization token automatically on every request for example.

What is the proper way to implement this?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:13

github_iconTop GitHub Comments

10reactions
stanley-cheungcommented, Nov 5, 2018

Allowing sending cookies is tracked at #176 But yes, an even better design is Interceptor support, which is tracked at #283. Both are very much in our radar.

7reactions
johanbrandhorstcommented, Nov 5, 2018

Automatically attaching a header on outgoing requests is a typical use of a gRPC client interceptor (like http middleware). I think interceptor support would help solve this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Credentials Document: What to Consider and What to Include
A credentials document is a valuable tool in highlighting your businesses unique selling points (USPs) to the potential client or customer so ...
Read more >
Credential - Wikipedia
A credential is a piece of any document that details a qualification, competence, or authority issued to an individual by a third party...
Read more >
LIST OF CREDENTIALS AND DOCUMENTS REQUIRED FOR ...
Copy of Preliminary School Nurse Credential • Form CL-41 EXP Verification of Experience form, signed by Human Resources personnel, verifying two years ...
Read more >
Request.credentials - Web APIs | MDN
The credentials read-only property of the Request interface indicates whether the user agent should send or receive cookies from the other ...
Read more >
Credentials, Documents and Reports - dco.uscg.mil
CREDENTIALS, DOCUMENTS AND REPORTS ... Documentation. A Certificate of Documentation (COD) is valid for one ... Oil Pollution Prevention Records/Documents.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found