Woodpecker+Forgejo: Failure to login

What app is this about, and its version: woodpecker 3.14.0~ynh2
What YunoHost version are you running: 12.1.39 (stable)
What type of hardware are you using: Old laptop or computer

Describe your issue

I have Forgejo up and running (on https://mydomain.tld/forgejo/). I want to connect Woodpecker to it (installed https://mydomain.tld/woodpecker).

To do so, I have created in Forgejo a new application (client Id + client secret) with redirect URI being https://mydomain.tld/forgejo/authorize (the Woodpecker doc is here but not very up to date it seems).

When I try to connect to Woodpecker, I get the first screen Login to Woodpecker with mydomain.tld, when I click on the button, I get this response from Forgejo:

Authorization failed
Unregistered Redirect URI

The authorization failed because we detected an invalid request. Please contact the maintainer of the app you have tried to authorize.

Any idea as to what may be wrong?

Share relevant logs or error messages

URI when I get the error is :

https://mydomain.tld/forgejo/login/oauth/authorize?client_id=XXXXXX-8a65-4ad6-993c-275268f0625a&redirect_uri=https%3A%2F%2Fmydomain.tld%2Fwoodpecker%2Fauthorize&response_type=code&state=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzgyMjM2MjcsImZvcmdlLWlkIjoiMSIsInR5cGUiOiJvYXV0aC1zdGF0ZSJ9.1SZYZ_rkoY2WtoEc6gAZaybBVx9ekAPoXVbLyHk8bBw

Edit: I change the redirect URI to https://mydomain.tld/woodpecker/authorize and now I’m stuck with an infinite loop (click on login, authorize, back to login page, etc).

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.