Custom login with Java Action

I created a Java action trying to perform the login action in my Mendix project, the Java code shown below, after I called this Java action in a microflow, and tried to show a page after login successfully, it shows me the message:The client is not authorized. Request failed with status code 419. Removing token and session. How can I resolve this issue?   Java Action;   Error:  
1 answers

Hi Ryan,


you can refer the below url for login using java action


Hope it helps!!!