2 Replies Latest reply on Jul 7, 2015 1:40 PM by nilsheuer

    Obtaining tokens fails with 'access denied' message. Can someone help?

    thundercat

      Dear community,

      I have difficulties obtaining tokens using OAuth (more precise: OAuth using Resource Owner Password Credentials Grant). I follow the tutorial at:

      https://community.jivesoftware.com/docs/DOC-157031#jive_content_id_STEPS_4_5_Request_access_and_refresh_tokens_Receive_t…

      I got stuck at Step 4/5: Request access and refresh tokens. I use curl to send the request, the response is every time:

      {
           "error" : "access_denied",
           "error_description" : "No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken"
      }
      

      What am I doing wrong?
      I am using the developer sandbox and uploaded my add-on there. I retrieved client id and client secret from the add-on page, as described. I double checked the client id, client secret, username and password in my curl call. Should all be correct.

      I hope someone can help.

      Best Regards, Mark