yemista
yemista

Reputation: 433

What is the best way to achieve token based authorization using Spring?

I am working with Spring 4 and am using Spring security and my goal is to have token based authorization with tokens granted upon successful login. I've done a lot of research and different people do different things. Some people create filters and their own token classes, and basically do a lot of heavy lifting. During my research I stumbled upon remember me in Spring, and I was easily able to implement what I wanted. Is this the best approach? Does Spring really do everything for you?

Upvotes: 1

Views: 188

Answers (2)

Adisesha
Adisesha

Reputation: 5258

Check Spring Security OAuth. Navigate through examples. Also read OAuth2 spec. It is difficult use any OAuth library without understanding the spec.

Upvotes: 1

Tito
Tito

Reputation: 9054

Spring OAuth will give you various types of authentication mechanisms.

Upvotes: 0

Related Questions