Welcome to the new Box Support website. Check out all the details here on what’s changed.

OAuth2 Authentication auth_url not working

New post

Comments

1 comment

  • jcleblanc

    Hi ,

     

    Happy to see if I can help here. There are a few items I should address here:

    1. Redirect: If your working strictly with OAuth 2, and not JWT / OAuth 2, then you're right, you'll have to have a browser component in place to redirect the user to Box to log in and approve the application permissions. If you switch to using JWT you won't have to go through that process. Here's info on the JWT app setup in case you want to take a look - it might be better for your use case.
    2. CSRF token: This is a random value that you pass through from the first step of the OAuth 2 process, which passes through the redirect / approval, and is provided back to you when you exchange the code parameter you get for an access token. This is a value that you set, and can be any string you'd like. The Python examples in this guide will walk you through those steps.

    Hope that helps,

    Jon

    0
    Comment actions Permalink

Please sign in to leave a comment.