New returns a new API auth interceptor.
( store *store.Store, secret string, licenseService *enterprise.LicenseService, bus *bus.Bus, profile *config.Profile, )
| 61 | |
| 62 | // New returns a new API auth interceptor. |
| 63 | func New( |
| 64 | store *store.Store, |
| 65 | secret string, |
| 66 | licenseService *enterprise.LicenseService, |
| 67 | bus *bus.Bus, |
| 68 | profile *config.Profile, |
| 69 | ) *APIAuthInterceptor { |
| 70 | return &APIAuthInterceptor{ |
| 71 | store: store, |
| 72 | secret: secret, |
| 73 | licenseService: licenseService, |
| 74 | bus: bus, |
| 75 | profile: profile, |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // WrapUnary implements the ConnectRPC interceptor interface for unary RPCs. |
| 80 | func (in *APIAuthInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc { |
no outgoing calls
no test coverage detected