ferrerojosh / nest-keycloak-connect

keycloak-nodejs-connect module for Nest
MIT License
318 stars 123 forks source link

Authentication in RPC context #182

Open jcbinet opened 7 months ago

jcbinet commented 7 months ago

Hello all,

I was looking at the implementation, and I am seeing that we cannot authenticate using the rpc context.

My current use case is that I am developing an API with both REST and gRPC endpoints. Both type of endpoints will be exposed to the internet and be called by third parties.

We want to use gRPC to allow more efficient network traffic for some use cases.

I understand that usually rpc is used for internal communications, but my use case is a bit different.

Is there a reason why it is not supported, any blockers, incompatibilities or issues, or is it something that could be integrated?

ferrerojosh commented 6 months ago

Blockers should be limited to the underlying library. I am not sure how to go about gRPC implementation in Nest.