Skip to content

使用官方工具Get Onedrive Refresh Token时提示invalid_request #9314

@HuskeyDev

Description

@HuskeyDev

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.50.0

Driver used / 使用的存储驱动

Onedrive

Describe the bug / 问题描述

Image

点击"Get Refresh Token"按钮后成功跳转至微软的第三方接口页面,但是提示
invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.
如图
Image

Reproduction / 复现链接

https://login.live.com/oauth20_authorize.srf?client_id=0a2991a3-1674-4334-8561-671cc7349960&scope=offline_access+files.readwrite.all&redirect_uri=https%3a%2f%2falistgo.com%2ftool%2fonedrive%2fcallback&response_type=code&state=MGEyOTkxYTMtMTY3NC00MzM0LTg1NjEtNjcxY2M3MzQ5OTYwOjp1dzY3UX5UQ01xZEp5SDM1aGxjSEhjbHZ%2bbWhOT0d4LmpmUEZtOjpnbG9iYWw%3d&uaid=ea8468ee4b594fd5a608bc3dd9528670&msproxy=1&issuer=mso&tenant=common&ui_locales=zh-CN&epct=PAQABDgEAAABVrSpeuWamRam2jAF1XRQE8p6bvEWfI3y5GezBQGgeDdpDyECLrZWdz2VlspSO1I7jNZG3QEuob1mNT1Og7NGZwBMQXDiCK2yNzxcAf8NlgBDUuf_dKL-uk9dhJxRkciZuwsFxs_0-aJuvZkAT0hc9-ZlNXuWxt8W9OWQhH3sI-8_KuTN7Mrg_M4AWOJmkIR1JrBiHOIJ7mzGSPNHMZI1ae34qJ4isMg-YIEfq-tLfgSAA&jshs=2&jsh=3%24ling_486%2540hotmail.com%24ling%24wei%24W4BJxIfm%242%240%240%246930248712397088858%241&jshp=3%24ling_486%2540hotmail.com%24ling%24wei%24W4BJxIfm%242%240%240%246930248712397088858%241

Config / 配置

{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "7Vr7B3rmsZoC6HDc",
"token_expires_in": 48,
"database": {
"type": "sqlite3",
"host": "",
"port": 0,
"user": "",
"password": "",
"name": "",
"db_file": "/home/huskey/alist/data/data.db",
"table_prefix": "x_",
"ssl_mode": "",
"dsn": ""
},
"meilisearch": {
"host": "http://localhost:7700",
"api_key": "",
"index_prefix": ""
},
"scheme": {
"address": "0.0.0.0",
"http_port": 5244,
"https_port": -1,
"force_https": false,
"cert_file": "",
"key_file": "",
"unix_file": "",
"unix_file_perm": "",
"enable_h2c": false
},
"temp_dir": "/home/huskey/alist/data/temp",
"bleve_dir": "/home/huskey/alist/data/bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "/home/huskey/alist/data/log/log.log",
"max_size": 50,
"max_backups": 30,
"max_age": 28,
"compress": false
},
"delayed_start": 0,
"max_connections": 0,
"max_concurrency": 64,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1,
"task_persistant": false
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"upload": {
"workers": 5,
"max_retry": 0,
"task_persistant": false
},
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress_upload": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"allow_retry_canceled": false
},
"cors": {
"allow_origins": [
""
],
"allow_methods": [
"
"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
},
"ftp": {
"enable": false,
"listen": ":5221",
"find_pasv_port_attempts": 50,
"active_transfer_port_non_20": false,
"idle_timeout": 900,
"connection_timeout": 30,
"disable_active_mode": false,
"default_transfer_binary": false,
"enable_active_conn_ip_check": true,
"enable_pasv_conn_ip_check": true
},
"sftp": {
"enable": false,
"listen": ":5222"
},
"last_launched_version": "v3.50.0"
}

Logs / 日志

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions