Authentication #413
-
Hi folks, thanks for the great work. Is there any documentation, guide for getting started with how to implement auth? I'm new to grpc ecosystem, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey there, I'm not sure any official patterns have been adopted or promoted, but I'd strongly recommend adopting patterns that work/worked with a normal REST API or something of that sort. In my case, I've used this with both HTTP basic auth and some other derivatives like JWT-ish. Cookies with sessions would also be trivial. I'd recommend implementing this as an HTTP middleware. If it's something a bit more complex, maybe as an actual interceptor. In my case, everything as an HTTP middleware has been plenty sufficient and the same middleware is shared and used with Connect endpoints and non Connect endpoints. I'm happy to share some pseudocode if you want some direction. |
Beta Was this translation helpful? Give feedback.
Hey there, I'm not sure any official patterns have been adopted or promoted, but I'd strongly recommend adopting patterns that work/worked with a normal REST API or something of that sort. In my case, I've used this with both HTTP basic auth and some other derivatives like JWT-ish. Cookies with sessions would also be trivial.
I'd recommend implementing this as an HTTP middleware. If it's something a bit more complex, maybe as an actual interceptor. In my case, everything as an HTTP middleware has been plenty sufficient and the same middleware is shared and used with Connect endpoints and non Connect endpoints.
I'm happy to share some pseudocode if you want some direction.