Support application/x-www-form-urlencoded for the OAuth 2.0 token endpoint
-
Environment
- MultiPortal Version: 1.2.1
- Proxmox VE Version: 9.2.6
- Deployment Type: HA Cluster
Description
We are integrating MultiPortal with an existing ITSM system using the OAuth 2.0 client credentials flow.The ITSM system sends token requests with the content type:
application/x-www-form-urlencodedHowever, the MultiPortal endpoint
/access/get-tokencurrently only accepts:multipart/form-dataThis content-type mismatch prevents the ITSM system from completing the OAuth authentication flow.
Expected Behavior
The endpoint/access/get-tokenshould accept valid OAuth 2.0 token requests encoded asapplication/x-www-form-urlencoded, including client credentials sent in the request body.Support for the existing
multipart/form-dataformat should remain available for backward compatibility.Actual Behavior
The endpoint/access/get-tokenonly accepts requests encoded asmultipart/form-data.Requests sent with
application/x-www-form-urlencodedare rejected, preventing the ITSM system from completing the OAuth 2.0 client credentials flow.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login