Daniel Grillo

Member since: Monday, 16 November 2015
Last login: 5 years ago
Profile viewed: 954 views

No Rank
Points: 0

Daniel Grillo is friends with Adriano

Daniel Grillo posted a comment on Partner Collaboration Using GetIt 5 years ago

Oh Oh, "Collaboration" of the Warriors lost.

DavidI is friends with Daniel Grillo

Daniel Grillo created a new topic ' How to get a token passed as header using datasnap' in the forum. 5 years ago

I've already put this question at stackoverflow, but I'll replicate it here trying getting an answer.

In my client application I'm using the following code to add a token in the header:

RESTRequest.Params.AddItem('Authorization', 'Bearer ' + MyToken, TRESTRequestParameterKind.pkHTTPHEADER, [TRESTRequestParameterOption.poDoNotEncode]);

I'd like to get this token in my server using datasnap.

I've tried use the answer from [here][1] and [here][2] but without success.

Is it possible?

How can I do this?

[1]: stackoverflow.com/a/14092079/116875
[2]: stackoverflow.com/a/8669046/116875