• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
Ranch Hand
Posts: 420
  • 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?
Thanks
Siegfried

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