>From that error output, I suspect that you called a method on a client object with incorrect arguments. What is the code that resulted in that error?
You should also keep in mind that the specific function grpc.credentials.createFromGoogleCredential should only be used with credentials objects returned by google-auth-library. For your own authentication, you should instead use grpc.credentials.createFromMetadataGenerator. The best documentation for that function is currently in the code, here: https://github.com/grpc/grpc/blob/master/src/node/src/credentials.js#L89. On Tue, May 23, 2017 at 7:02 AM <[email protected]> wrote: > > Hi all, > > > I'm using latest version of gRPC and I'm using node.js to make > an authenticated channel using custom access token and ssl certificate > > *Brief explanation:* > > I was trying to make authenticated channel using combined credentials (ie. > ssl_creds & call_creds) as shown in > http://www.grpc.io/docs/guides/auth.html#authenticate-with-google-4. > But instead of using google auth, I was trying to use my own access token. > > I am getting errors such as > W20170523-10:25:15.721(-3)? (STDERR) plainSignature.push( > signature[key].name ); > W20170523-10:25:15.720(-3)? (STDERR) ^ > W20170523-10:25:15.728(-3)? (STDERR) TypeError: Cannot read property > 'name' of null > W20170523-10:25:15.733(-3)? (STDERR) at __ > (C:\Users\prasanna.elangovan\Desktop\Meteor_Practice\node_modules\arguejs\argue.js:117:46) > > > Can anyone please provide example code to achieve a authenticated channel > using ssl certificate & custom access token > > > FYI - There is a way to do this in python - > http://www.grpc.io/grpc/python/_modules/grpc.html#access_token_call_credentials. > I want to do the same in node.js. > > > Thanks in advance. > > -- > 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 post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/grpc-io. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/136526ce-dc63-4faa-986b-0568764ab0a4%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/136526ce-dc63-4faa-986b-0568764ab0a4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAPK2-4fqQfeieDLetYxXVEYyeV-HwyQ3bHqpuc-sA5kcSW3uFw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
