-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: api key support, hello world example #387
Conversation
|
Thanks for the sample! Can you please add this to the main readme as well |
added to README.md , thanks for checking @Quinn-With-Two-Ns |
DialOptions: []grpc.DialOption{ | ||
grpc.WithUnaryInterceptor( | ||
func(ctx context.Context, method string, req any, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { | ||
return invoker( | ||
metadata.AppendToOutgoingContext(ctx, "temporal-namespace", *namespace), | ||
method, | ||
req, | ||
reply, | ||
cc, | ||
opts..., | ||
) | ||
}, | ||
), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, this shouldn't be necessary once temporalio/sdk-go#1467 is merged released (don't have to change anything now)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not merged, released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, thanks @cretz and @Quinn-With-Two-Ns . merging this for now.
have a note to revisit once the new version is released 👌
This reverts commit 887402f.
What was changed
replicated the hello world example, but authenticated with api key
Why?
Found myself needing a Temporal client with api key and didn't find an example here, so adding 1
Checklist
Closes
How was this tested:
Ran the Workflow against my namespace in Temporal Cloud
Added relevant readme to the sample