Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practices for Web service user authentication and session management

As per the title, I am wondering what are some best practices for Web service user authentication and session management, mainly for backend implementation, especially using Java (J2EE).

Has anyone published anything on the subject? What kind of security considerations should one keep in mind when working with user authentication? What kind of design patterns are related? How should sessions be managed? What does a well-designed architecture look like?

Are there existing systems that could be used as good examples, or even bad examples?

like image 334
Shaggy Frog Avatar asked Dec 05 '25 02:12

Shaggy Frog


1 Answers

As the Java EE specifications for web services actually consist in exposing a stateless session bean as a web service, you won't be able to implement session management without a "home-made" solution such as including a user token in each of your request.

like image 198
kyiu Avatar answered Dec 06 '25 15:12

kyiu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!