title: JHipster: Enable anonymous users to read entity, but not update it
body: <p>I have generated a JHipster application using these values:</p>
  
  <pre><code>{   
      "generator-jhipster": 
      {
          "jhipsterVersion": "4.13.0",
          "baseName": "app",
          "packageName": "my.app",
          "packageFolder": "my/app",
          "serverPort": "8080",
          "authenticationType": "session",
          "hibernateCache": "ehcache",
          "clusteredHttpSession": "no",
          "websocket": "no",
          "databaseType": "sql",
          "devDatabaseType": "h2Disk",
          "prodDatabaseType": "mysql",
          "searchEngine": "elasticsearch",
          "buildTool": "gradle",
          "enableSocialSignIn": false,
          "rememberMeKey": "",
          "clientFramework": "angularX",
          "useSass": true,
          "applicationType": "monolith",
          "testFrameworks": [],
          "jhiPrefix": "jhi",
          "enableTranslation": false  
      }  
  }
  </code></pre>
  
  <p>I would like to allow anonymous users to view an entity, but not update or delete that entity. </p>
  
  <p>I have tried editing the generated <strong>SecurityConfiguration.java</strong> file to add <code>permitAll(HttpMethod.GET,"/**")</code> for <code>authorizeRequests()</code> in the configure(HttpSecurity http) method. </p>
  
  <pre><code>.and()
      .authorizeRequests()
      .antMatchers(HttpMethod.GET, "/api/products").permitAll()
  </code></pre>
  
  <p>I am still getting this message when I try  to access the entity.</p>
  
  <pre><code>Resolved exception caused by Handler execution: org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource
  </code></pre>
  
  <p>I know is similar to this question: <a href="https://stackoverflow.com/questions/36899967/jhipster-enable-anonymous-users-to-read-entity-but-not-update">JHipster: Enable anonymous users to read entity, but not update?</a> </p>
  
  <p>I have tried to use the same solution here but it's not working.  Is there something I should change in the front end ?</p>
  
  <p>Can you help me on this?</p>
  
  <p>Thank you</p>