• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

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?

Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic