#12287 Auth flow seems to fail when pushing to git repo fork
Closed: Fixed by nnyby. Opened by nnyby.

Hi,
I'm trying to push to a rpm fork I have, and ran into some weird behavior.

$ fedpkg clone -a forks/<username>/rpms/<repo>
$ <made changes in new branch>
$ git push
Please visit https://id.fedoraproject.org/openidc/Authorization?scope=openid+https%3A%2F%2Fid.fedoraproject.org%2Fscope%2Fgroups+https%3A%2F%2Fsrc.fedoraproject.org%2Fpush&response_type=code&client_id=fedpkg&redirect_uri=http%3A%2F%2Flocalhost%3A12345%2F&response_mode=query to grant authorization

Notice that the redirect_uri argument above points to a localhost:12345 url. Navigating to the id.fedoraproject.org link in my browser ultimately redirects to

http://localhost:12345/?code=<some security code>

Which does nothing, and I'm unable to authorize this git push.

Describe what you would like us to do:


Look into your back-end code for this localhost:12345 string and figure out why this is being given in this git push response, and whether this is a bug or not.

When do you need this to be done by? (YYYY/MM/DD)


No deadline. I was just trying to contribute to a project I use by submitting a pull request on src.fedoraproject.org.


You need to run the push on an instance that has access to a web browser. It then will allow you to login and get a token...

See https://fedoraproject.org/wiki/Infrastructure/HTTPS-commits

Thanks - this solved it.

Metadata Update from @nnyby:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata