ShareFile OAuth Authorization Code Flow ====================================== Configuration: ============== Subdomain: cazarin Client ID: CwOHHD06vOwW4QlxPEYH4GULOhgoZLAw Client Secret: l1ua****Zjjk Step 1: Authorization URL ========================= Authorization URL: https://cazarin.sharefile.com/oauth/authorize?response_type=code&client_id=CwOHHD06vOwW4QlxPEYH4GULOhgoZLAw&redirect_uri=https%3A%2F%2Flocalhost%2Fcallback&scope=account_management+file_management To complete the OAuth flow: 1. Open this URL in your browser 2. Log in to ShareFile 3. Authorize the application 4. Copy the 'code' parameter from the redirect URL 5. Use that code in Step 2 Step 2: Exchange Authorization Code for Token ============================================== No authorization code provided. To test this: 1. Open the authorization URL above 2. Complete the authorization 3. Copy the 'code' from the redirect URL 4. Run: php oauth_authorization_code.php?code=YOUR_CODE_HERE Important Notes: ================ 1. You need to set the redirect_uri in your ShareFile API application 2. The redirect_uri must match exactly what's configured in ShareFile 3. Authorization codes are single-use and expire quickly 4. For production, you'll need a proper callback endpoint Alternative: Check if your API app supports 'password' grant type Some ShareFile API applications support both flows.