Hello,

I am trying to create an example to connect with a gRPC endpoint that I 
have the OAuth2 credentials for and looking at the nodejs examples I am not 
quite sure how to do that. All examples I have seen use the 
credentials.createInsecure() call to create a sample insecure channel for 
test purposes. Examples I have seen here in this group seem to use some 
form of certs to use createSsl call with the Authorization Bearer token.

I have the OAuth2 credentials for the server in the form of clientId, 
clientSecret, accessTokenUri (to get access token from) and destinationUri 
(endpoint) that I need to hit to run my gRPC calls with the Bearer access 
token. Using Postman with clientId, clientSecret and accessTokenUri I can 
get the access_token for client_credentials to confirm that is working. But 
how do I do all that in nodejs gRPC to make a successful call to get the 
access_token and use that for making gRPC calls against destinationUri? I 
don't have any certificates to pass to the createSsl call.

Thank you for any guidance or pointers.

Sanjay.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/a4db21cd-1621-4733-a49d-f4db22367adbn%40googlegroups.com.

Reply via email to