Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

OAuth2 with JWT

Answered
New post

Comments

3 comments

  • mwiller

     This might be a misunderstanding on my part, but it looks from your example like you're passing the parameters (e.g. client_id and assertion) as query parameters in the URL — these are meant to be passed in the POST body.  Can you check to make sure you're passing them in the correct place?

    0
    Comment actions Permalink
  • Chrisre

    Yes, you are right. I was putting the parameters in the wrong place. When I added the parameters to body it worked. I am getting a different error now, about my private key not matching the public key. But at least the request seems to be working now. Thanks!

    0
    Comment actions Permalink
  • _bigtom

    For the mismatched key error, I had that initially when I did not first decrypt the private key provided by box.

     

    Once I got past that error, I had another one that is that the signature was signed with a different key than the private key on file. Not true but I did get the error.

    0
    Comment actions Permalink

Please sign in to leave a comment.