title: "Not enough permissions to access Native PKCE protocol"
body: <p>I am developing a web application using Spring framework and Java.
  I have added a login with linkedin feature to my webapp(domain:localhost); however, i am getting a 403 Forbidden error &quot;Not enough permissions to access Native PKCE protocol&quot; (i am able to redirect to linkedin + allow a consent screen). i get the error when redirecting to my webapp login page.</p>
  <pre><code>    application.properties
  spring.security.oauth2.client.registration.linkedin.clientId=
  spring.security.oauth2.client.registration.linkedin.secret=
  spring.security.oauth2.client.registration.linkedin.client-authentication-method=post
  spring.security.oauth2.client.registration.linkedin.authorization-grant-type=authorization_code
  spring.security.oauth2.client.registration.linkedin.scope=r_liteprofile
  spring.security.oauth2.client.registration.linkedin.redirect-uri=http://localhost:8080/login/oauth2/code/linkedin
  spring.security.oauth2.client.registration.linkedin.client-name=Linkedin
  spring.security.oauth2.client.registration.linkedin.provider=linkedin
  spring.security.oauth2.client.provider.linkedin.authorization-uri=https://www.linkedin.com/oauth/v2/authorization
  spring.security.oauth2.client.provider.linkedin.token-uri=https://www.linkedin.com/oauth/v2/accessToken
  spring.security.oauth2.client.provider.linkedin.user-info-uri=https://api.linkedin.com/v2/me
  spring.security.oauth2.client.provider.linkedin.user-name-attribute=id
  </code></pre>
  <p><a href="https://i.stack.imgur.com/E2xrH.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>webSecurityConfig
  http.oauth2login()</p>