Dropbox OIDC error "Use HTTP POST requests instead of GET to access Dropbox API's" #8270
-
Hello All, Setting up OIDC authentication to Dropbox using in my export OIDC_CLIENT_ID=(Dropbox App Key)
export OIDC_CLIENT_SECRET=(Dropbox App Secret)
export OIDC_AUTH_URI=https://www.dropbox.com/oauth2/authorize
export OIDC_TOKEN_URI=https://api.dropboxapi.com/oauth2/token
export OIDC_USERINFO_URI=https://api.dropboxapi.com/2/openid/userinfo
export OIDC_USERNAME_CLAIM=username
export OIDC_DISPLAY_NAME=DropBox
export OIDC_SCOPES="openid profile email" This seems to work but the authentication fails with the error: {
"error": "Failed to parse response from https://api.dropboxapi.com/2/openid/userinfo. Expected JSON, got: Error in call to API function \"openid/userinfo\": Use HTTP POST requests instead of GET to access Dropbox API's",
"level": "error",
"message": "Error during authentication",
"stack": "InternalServerError: Failed to parse response from https://api.dropboxapi.com/2/openid/userinfo. Expected JSON, got: Error in call to API function \"openid/userinfo\": Use HTTP POST requests instead of GET to access Dropbox API's\n at InternalError (/app/code/build/server/errors.js:36:34)\n at request (/app/code/build/server/utils/passport.js:79:37)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async OAuth2Strategy._verify (/app/code/build/plugins/oidc/server/auth/oidc.js:57:23)"
} Which I guess is simply because Dropbox is expecting POST requests per their documentation? Should I set this up differently to make OIDC to Dropbox work? Perhaps some obvious error in my setup that I overlooked? Or is this something that the Outline devs need to take a look at? Brian |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yep it seems that way – Dropbox is not properly following the spec which should allow a |
Beta Was this translation helpful? Give feedback.
-
Hello Tom, That is excellent news, thank you very much for that. I'll keep an eye on the releases and test it when available. Best regards, |
Beta Was this translation helpful? Give feedback.
Potential code change here:
#8282