3

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?

Shaggy Frog
  • 27,575
  • 16
  • 91
  • 128

2 Answers2

3

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.

kyiu
  • 1,926
  • 1
  • 24
  • 30
0

Not specifically REST but we use same authentication mechanism for standard webservices as for any other web container request. Means send basic authentication data to backend. Over SSL. Never had any issues.

Robert
  • 36
  • 4