Skip to content

Decode user info for request authorization

Kassio Borges requested to merge kborges/decode-userinfo into master

The problem

The user info that comes on the repository URL comes "percent-encoded", which generates the wrong basic authorization when encoded to base64.

The solution

Decode the user info before encoding it to base64 for the Authorization header

Obs

This is my first gitaly contribution and I don't have any experience with golang, so I'm not sure about the solution.

Edited by GitLab Release Tools Bot

Merge request reports

Loading