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?