Jump to content

Srpirng boot security sahayam kaavalenu


tejak123

Recommended Posts

you have to write a class something like below an then use it in pre auth. 

public class PermissionEvaluator {
 ---

--

--
    public boolean hasRole(Authentication authentication) {
           String userGroup=env.getRequiredProperty("user_group");
            if(userGroup is authorized)
                return true;
            else

               return   false
      

}

 

@PreAuthorize("@PermissionEvaluator.hasRole(authentication)")

Link to comment
Share on other sites

What is spring boot yaar? Is this something like spring Mvc framework in Java? I'm a java developer and UI developer is this anyhow useful for me to update my technology? Please throw some light about this technology 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...