• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to translate JUnit Test into Javascript/Angular/jQuery/AJAX  RSS feed

Siegfried Heintze
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a Spring Boot Java Tutorial that has a user-name-password security example that seems to work with a java JUnit test. I would like have help enhancing this example to use javascript with jQuery or Angular.

Can someone help me translate this java code into javascript so I can login with AJAX and make AJAX calls to the example REST service?

Somehow I need to use AJAX to get a session cookie for use with subsequent AJAX calls and I'm not clear on how to do that with a Spring Boot REST service. I think there might be some other security concerns like generating anti CSRF cookies too?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!