I'm working on a development where I use a REST sender channel to do a GET on a certain endpoint with an OAuth token generated by the channel. The problem is that, in the same execution, I have a UDF that also calls a process on that endpoint, and it needs to use the same token.
My question is: is it possible to use the token generated by the channel inside the UDF? I'm not sure if there's some limitation on the Java side for UDFs. Right now, to work around it, I'm generating the token again inside the UDF, which isn’t a good practice since I already have a token available.
Is there any method I can call in the code to get that token that’s already in the cache for this execution?
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.