Jump to content

Srpirng boot security sahayam kaavalenu


Recommended Posts

Posted

Pre-auth filter lo external config file read ayyela cheyyali .. prize money kuda ivvabadunu ..

Posted

maven profiles create chesi cheyyochu, not fully sure 

Posted

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)")

Posted

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 

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...