Skip to content

Oauthbearer token refresh callback #410

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

Merged
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
fd865fd
configure oauthbearer_token_refresh_callback
bruce-szalwinski-he Feb 5, 2024
3349950
config specs
bruce-szalwinski-he Feb 5, 2024
7177f5e
config specs
bruce-szalwinski-he Feb 5, 2024
c596aa6
Merge branch 'main' into oauthbearer_token_refresh_callback
bruce-szalwinski-he Feb 7, 2024
c55d383
add set_token / set_token_failure bindings
bruce-szalwinski-he Feb 7, 2024
cd83676
add set_token / set_token_failure bindings
bruce-szalwinski-he Feb 7, 2024
05c02e4
Merge branch 'oauthbearer_token_refresh_callback' of https://github.c…
bruce-szalwinski-he Feb 7, 2024
0bf54f5
pass client pointer to callback
bruce-szalwinski-he Feb 7, 2024
e0bad42
Merge branch 'main' into oauthbearer_token_refresh_callback
mensfeld Feb 13, 2024
a4015fa
Merge branch 'main' into oauthbearer_token_refresh_callback
bruce-szalwinski-he Feb 13, 2024
ac2121d
adjust types for set token
bruce-szalwinski-he Feb 14, 2024
d889648
adjust types for set token
bruce-szalwinski-he Feb 14, 2024
8142a37
Merge branch 'oauthbearer_token_refresh_callback' of https://github.c…
bruce-szalwinski-he Feb 14, 2024
c84db70
back to string
bruce-szalwinski-he Feb 14, 2024
b315d0b
back to string
bruce-szalwinski-he Feb 14, 2024
1cad89a
back to pointer
bruce-szalwinski-he Feb 15, 2024
b1bd10e
int -> int64
bruce-szalwinski-he Feb 15, 2024
a133f6a
cleanup set token tests
bruce-szalwinski-he Feb 15, 2024
2276a7d
Merge branch 'main' into oauthbearer_token_refresh_callback
mensfeld Feb 29, 2024
387e5c9
expose oauthbearer_set_token on producer
bruce-szalwinski-he Feb 29, 2024
10df30d
Merge branch 'oauthbearer_token_refresh_callback' of https://github.c…
bruce-szalwinski-he Feb 29, 2024
a15d95d
oauthbearer_set_token specs
bruce-szalwinski-he Mar 1, 2024
f98687a
flatten extensions
bruce-szalwinski-he Mar 1, 2024
dcfa9ef
add set token ability to consumer and admin, refactor into helper
bruce-szalwinski-he Mar 1, 2024
5705fee
pass native-kafka as client, make helper a class
bruce-szalwinski-he Mar 1, 2024
b3b9d8b
expect type of client
bruce-szalwinski-he Mar 1, 2024
7ecc6e5
pass client-id in oauth callback
bruce-szalwinski-he Mar 1, 2024
947eb2c
refactor helper include
bruce-szalwinski-he Mar 1, 2024
172e349
comment out specs for oauthbearer_set_token when sasl is configured
bruce-szalwinski-he Mar 1, 2024
0a6babf
remove client id for now
bruce-szalwinski-he Mar 2, 2024
c989728
pass client-name to oauth callback
bruce-szalwinski-he Mar 3, 2024
e51542c
make args match across tests
bruce-szalwinski-he Mar 3, 2024
c545a1c
refactor oauthbearer_set_token as a mixin
bruce-szalwinski-he Mar 4, 2024
2ef64c3
close and free
bruce-szalwinski-he Mar 9, 2024
90c3872
close instead of free
bruce-szalwinski-he Mar 10, 2024
0ef2350
add TestConsumer that closes and destroys when done
bruce-szalwinski-he Mar 10, 2024
3b7b04c
Merge branch 'main' into oauthbearer_token_refresh_callback
mensfeld Mar 12, 2024
8a093ed
names are hard
bruce-szalwinski-he Mar 12, 2024
86cba70
clarify callback scope
bruce-szalwinski-he Mar 12, 2024
61b5615
Merge branch 'oauthbearer_token_refresh_callback' of https://github.c…
bruce-szalwinski-he Mar 12, 2024
faec83b
Merge branch 'main' into oauthbearer_token_refresh_callback
mensfeld Mar 17, 2024
a8df2ab
docs on extension_size math
bruce-szalwinski-he Mar 19, 2024
ea5f7e5
Merge branch 'oauthbearer_token_refresh_callback' of https://github.c…
bruce-szalwinski-he Mar 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adjust types for set token
  • Loading branch information
bruce-szalwinski-he committed Feb 14, 2024
commit d889648ee6b8be849b51a6702224bb0a5f782a47
2 changes: 1 addition & 1 deletion lib/rdkafka/bindings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class TopicPartitionList < FFI::Struct
callback :oauthbearer_token_refresh_cb, [:pointer, :string, :pointer], :void
attach_function :rd_kafka_conf_set_oauthbearer_token_refresh_cb, [:pointer, :oauthbearer_token_refresh_cb], :void
attach_function :rd_kafka_oauthbearer_set_token, [:pointer, :string, :int, :string, :pointer, :int, :pointer, :int ], :int
attach_function :rd_kafka_oauthbearer_set_token_failure, [:pointer, :pointer], :int
attach_function :rd_kafka_oauthbearer_set_token_failure, [:pointer, :string], :int
# Log queue
attach_function :rd_kafka_set_log_queue, [:pointer, :pointer], :void
attach_function :rd_kafka_queue_get_main, [:pointer], :pointer
Expand Down