Posted: Mon Jan 16, 2017 1:46 am Post subject: Parsing JWT Token & authentication with ESQl
Newbie
Joined: 16 Jan 2017 Posts: 9
I have encoutered an interesting problem with authentication. I'm developing REST service which will be given JWT token. This token then needs to be decoded and parsed for required information. After the information about the user is received, the user is either declined or granted access. Now, the parsing and decoding part is not a problem. I have following code for that:
DECLARE CasTokenHead CHAR CAST(DecTokenHead AS CHARACTER CCSID 1208);
DECLARE CasTokenBody CHAR CAST(DecTokenBody AS CHARACTER CCSID 1208);
DECLARE INEX CHAR
Now, the first 3 variables are for my testing, the test service I made accepts 3 parameters, each parameter for the respective encoded part of the token. The real service wont use those parts as parameters and here is my problem. How do I reach the token? Is it part of HTTP header within the message tree or do I have to pass it really as parameters. I'm asking because I have to adress these parts somehow and I don't know where whithin the enviroment I should look for them.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum