Provide a way to pass in an authenticated auth client
See original GitHub issueIn the GAPIC clients, I can do something like this:
const {GoogleAuth} = require('google-auth-library');
const {CloudBuildClient} = require('@google-cloud/cloudbuild');
const auth = new GoogleAuth();
const buildy = new CloudBuildClient({ auth: auth });
This is nice because I can create a single auth client, and then share it across multiple services. It drastically reduces process startup when metadata servers are involved. However … I can’t seem to find a way to do this with our hand written libraries 😦 Is there a way I don’t know about to pass a pre-obtained auth client?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
OAuth 2.0 Client Authentication - Takahiko Kawasaki - Medium
To use this method, first, build a string by concatenating a client ID, a colon and a client secret. Next, encode the string...
Read more >Client Credentials Flow - Auth0
The application authenticates with the Auth0 Authorization Server using its Client ID and Client Secret ( /oauth/token endpoint). Auth0 Authorization Server ...
Read more >Client authentication - IBM
The server authenticates the client by receiving the client's certificate during the SSL handshake and verifying the certificate is valid. Validation is done...
Read more >How should I pass login data from client to server using REST ...
I recommend keeping your RESTful interface stateless. This means for every request, you must pass in all authentication information.
Read more >HTTP authentication - MDN Web Docs - Mozilla
Usually a client will present a password prompt to the user and will then issue the request including the correct Authorization header. A ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@oscar60310 thanks! I sent a PR here: https://github.com/googleapis/nodejs-storage/pull/1391, please take a look!
This was meant to be possible, so I’m not sure if we lost it along the way, or we accidentally left some wires unconnected. But it should be easy enough. PR coming!