Spring Security Jax-rs OAuth2 with JWT example

I have a Jax-RS application that uses spring for the component wiring and spring security for the authentication and authorization part. I have been trying to configure spring security with OAuth2 and JWT tokens but there is not any good sample to follow. The only one that I was able to find is this one: https://github.com/spring-projects/spring-security-oauth but it doesn't really shed any light on how the authentication part is done, for example how to obtain a token or how to send it (cookies or header) Is anyone aware of any good example on this specific setup?

Best.

Answers


I haven't found any good examples other that the ones mentioned in the original post. I have successfully managed to get this working. For anyone interested I have created this gist. I would like to create a full project when I find some spare time


Need Your Help

“core-header-panel” doesnt seem to work out-of-the-box

polymer web-component

I was trying some core polymer elements, and I have been having trouble using core-header-panel in my demo.

Posting a JSOUP Document to login to website

android post cookies ssl jsoup

I'm posting here because I'm at my wit's end. I'm using Jsoup to post HTML data used to login. What's strange is I can enter data into the form, press Login, and get a response from the website. Ho...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.