• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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?

You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic