When creating an API you can manage a “session” with a JWT Json Web Tokens ensuring the user has login previously.
This post explains how JWT is working and how to implement it with SpringBoot using user identity stored in a Database.
This is based on a real implementation and is the sum of lots of search on Internet to make it correctly working.
SpringBoot is a really efficient framework for creating webservices and much more. For this reason I’m using it to design my backend applications.
This framework is also well referenced on Internet and many people are downloading it and using it. All of this sounds really good and you will see you can make a webservice in less than 5 minutes following the many examples existing on Internet. As usually in this kind of technology once you have made the classical HelloWorld and university classical practices you have a lot of difficulties to make your first real program coupling different simple use-cases. So As I spent a couple of hours searching solution on Internet, this post will give you a full example of a project getting data from a MongoDB instance to provide a simple webservice.
After having update my Mac Os X, the java 6 have been removed and unfortunately Arduino request to use it. Personally I’m not really happy to install this not even more supported version of Java on my machine.
I was looking for the 1.5.8 Beta made for Java 7. I was not able to download it as the download stops in the middle even if I have a really good transfer rate at the beginning.
It seems that there is no mirror for Arduino (waouhou !! what that sh*t ?!?) and it seems this download problem is not really new. Here is the solution obtained from here. Use command line curl program:
curl -LOGC - http://arduino.cc/download.php?f=/arduino-1.5.8-macosx-java7.zip
The last step to be able to use it is to install Java from java.com
Sometimes, when you go live an application handling a big applet you could have not network problem as if all the user try to get the associated Jar files in parallel this could saturate your network and impact your go-live.
One of the solution is to pre-load these JAR files into the browser of each user. Unfortunately is sound not possible to copy the files into a specific directory to do it : the Jar files must be loaded for the server.