Bearer Token in CLOB
Posted: Thu Jan 24, 2019 8:19 am
I'm integrating with an API that does bearer authentication. I need to store the bearer token so that I can use it in subsequent requests.
Because the token can be pretty large, I have created a CLOB based field to handle it (wk_WorkforceAuthToken).
The problem is that when I try to set the field, I get an error stating "type CLOB is not assignment compatible with expression Reader.ReaderStringWithName("access_token").
I could make the token a string type, but I am worried that the token will blow out the length.
Whats the best way to deal with this?
Thanks,
Joe
Because the token can be pretty large, I have created a CLOB based field to handle it (wk_WorkforceAuthToken).
Code: Select all
if ((#Request.Response.IsSuccessfulRequest) *AndIf (#Request.Response.IsSuccessHttpStatusCode))
#Reader.SetSourceHttpResponse httpresponse(#Request.Response)
#wk_WorkforceAuthToken := #Reader.ReadStringWithName( "access_token" )
endif
I could make the token a string type, but I am worried that the token will blow out the length.
Whats the best way to deal with this?
Thanks,
Joe