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\xxxxxx\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.
via Prasanna Elangovan
No comments:
Post a Comment