Open armujahid opened 2 years ago
gRPC golang auth examples like https://github.com/TykTechnologies/custom-plugins/tree/master/plugins/grpc_go-auth-pre_headerinject_authhook is also not compiling. I am getting this error while trying to run this example using
go mod init tyk-plugin
go mod tidy
github.com/TykTechnologies/tyk-protobuf/bindings/go: module github.com/TykTechnologies/tyk-protobuf@latest found (v0.0.0-20220714214409-d0cb35aefc54), but does not contain package github.com/TykTechnologies/tyk-protobuf/bindings/go
I have created this example https://github.com/armujahid/tyk-grpc-go-mongo-accesstoken/ that can be included in this repo. This example is containerized and can be forked to create/deploy grpc plugin on k8s
Current examples are using older versions of tyk. I think we should update examples to support latest version I was able to compile few basic examples for 4.0.4 version using these steps:
Signature of ctx.SetSession is changed in latest version that's why go-auth-multiple_hook_example isn't compiling.
Related: https://community.tyk.io/t/go-auth-plugin-example-with-latest-tyk-version-v4-0-4/5635