Mason Xing
Mason Xing
> To set static headers use https://typescript.temporal.io/api/interfaces/client.ConnectionOptions#metadata and https://typescript.temporal.io/api/interfaces/worker.NativeConnectionOptions#metadata. > > Client and Connection objects expose a [`withMetadata`](https://typescript.temporal.io/api/classes/client.Connection#withmetadata) helper that can be used to set metadata in an async context....
Thanks so much, @mjameswh. I know that `NativeConnection` is used for creating Workers, and can pass a `metadata` parameter to set the grpc header. Then the grpc header can be...
In short. How to get the `NativeConnection instance` in an activity execution? @mjameswh @bergundy, Thanks. ``` export class WorkflowAuthInterceptor implements WorkflowInboundCallsInterceptor { public async execute( input: WorkflowExecuteInput, next: Next ):...
Thanks, @mjameswh > Are you developing something to support dynamically starting/reconfiguring/stopping Workers from a single process? No, I am not working on this. I am working on Authentication with the...
Hello, @mjameswh Any Suggestions about the issue above? Thanks.
Thanks @bergundy. Not just authenticate my worker, but also authenticate the grpc requests from the worker to execute activities. So every time the worker needs to execute activities, a JWT...
Thanks @bergundy . But when creating the worker, there is no enough data act as parameters to get the token.
Thanks so much @bergundy . In my situation. When the worker polling the activities, it need to be authenticated. When a Worker is created and registered, it need to be...
Thanks @bergundy . The connection between a Worker and the Temporal server seems some kind of long-term connection? If it needs a token when a Worker is created and registered,...
> If you need to refresh the token use the https://typescript.temporal.io/api/classes/worker.NativeConnection#setmetadata method. Hello, @bergundy . If the token used for Worker creation need to be judged if it is expired...