• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic