You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I'm trying to figure out how to I use iron-functions to get client cookie or header information(token) from my java class. Could you give me an example? (can't find one at current code track)
At old time we will get httprequest / httpresponse object from servlet in web a standard web project.
And try to get cookie and header there, just wondering how do we get from a pojo main function here?
Since we will use cookie(entrypt) to do user verification with our other systems.
Thank you!
Gatsby
The text was updated successfully, but these errors were encountered:
sss0350
changed the title
How do I get authentication context in my java main function?
How do I get authentication context(cookie or header) in my java main function?
Jan 24, 2018
I'm glad that you were able to access request headers ! You can use route configuration to add static headers as described here. Unfortunately there is no way to add headers dynamically at this point as you would need to in a cookie based authentication. What you can do is maybe write / add a server cookie to response object, and read it from the body (as opposed to from headers) from the client side.
Hello there,
I'm trying to figure out how to I use iron-functions to get client cookie or header information(token) from my java class. Could you give me an example? (can't find one at current code track)
At old time we will get httprequest / httpresponse object from servlet in web a standard web project.
And try to get cookie and header there, just wondering how do we get from a pojo main function here?
Since we will use cookie(entrypt) to do user verification with our other systems.
Thank you!
Gatsby
The text was updated successfully, but these errors were encountered: