How to authenticate REST web service without displaying any login page or any JSP page in Spring Security -


I want to integrate spring security in REST web services, but when url is killed on the default login page displayed by Spring Security How can I authenticate the REST web service without displaying any login page or any JSP page?

You can configure Pre-authorization in @EnableGlobalSecurityMethod ~ By using , spring protection in your application, I think this is annotation. In your restservice, using @PreAuthorization ("& lt; role & gt;") , I think this is annotation. It works very well.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -