Skip to content

[Bug] Microsoft OneDrive Backup: "Auth code" validation fails with correct token format #11685

@tpchagas

Description

@tpchagas

Contact Information

tpchagas@terra.com.br

1Panel Version

v1.10.34-lts

Problem Description

Description

I am trying to configure Microsoft OneDrive as a backup account, but the "Auth code" validation is rejecting the token generated by the "Acquire" link.

Even after copying the correct code from the redirected URL, the UI displays the error:

"The current authorization code format is incorrect, please confirm again!"

Steps to Reproduce

  1. Go to Settings > Snapshot/Backup.
  2. Click to add a Microsoft OneDrive account.
  3. Click the "Acquire" button and log in to Microsoft.
  4. Copy the value of the code parameter from the redirected URL.
  5. Paste it into the Auth code input box.

Current Behavior

The input field turns red and shows the validation error: "The current authorization code format is incorrect, please confirm again!".

Specifics

  • The generated code ends with %24%24.
  • I have tried pasting it exactly as copied.
  • I have also tried manually decoding %24 to $ (replacing %24%24 with $$), but the validation still fails.
  • Screenshot attached below.

Expected Behavior

The 1Panel dashboard should accept the standard Auth Code format generated by Microsoft OAuth or handle the URL encoding characters correctly.

Environment

  • 1Panel Version: v1.10.34-lts
  • Browser: navegador Chrome

Additional Context

The documentation link followed: https://docs.1panel.pro/user_manual/settings/#auth-code-of-onedrive

Image

Steps to Reproduce

Steps to Reproduce

  1. Go to Settings > Snapshot/Backup.
  2. Click to add a Microsoft OneDrive account.
  3. Click the "Acquire" button and log in to Microsoft.
  4. Copy the value of the code parameter from the redirected URL.
  5. Paste it into the Auth code input box.

The expected correct result

Steps to Reproduce

  1. Go to Settings > Snapshot/Backup.
  2. Click to add a Microsoft OneDrive account.
  3. Click the "Acquire" button and log in to Microsoft.
  4. Copy the value of the code parameter from the redirected URL.
  5. Paste it into the Auth code input box.

Related log output

Additional Information

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions