I'm building a decision support tool in GRAILS for the room scheduling at my highschool. I'm using Spring Security and I want to secure the REST api. I've found very little information on the proper way to do this. However I've been looking to the Spring Security REST plugin
The documentation is not very clear to me, does anyone have a working example/tutorial using this plugin?
Suggestions on how to implement this would be great.
I am just reading out the sequence diagram loud for you. I am working on a sample app using this plugin and (AngularJS in client side) and will be releasing soon (probably tonight).
Here are the steps:
X-Auth-Token
(default) instead of passing Basic Auth
every time. Therefore, you end up with a token based validation for the REST Endpoints. Go through plugin's FAQ for more answers.
Author will be releasing the latest version of plugin (1.3.0) very soon and you would find some updates in the documentation.
I have just touched the basic functionality of this plugin right now, but it has the flexibility to handle more than just generating token. Example, delegating auth to OAuth providers . I will update the link to the aforementioned sample app in this answer as soon as I push it to github.
UPDATE:
Sample App
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.