requilence / integram

Integrate Telegram into your workflow – Trello, Gitlab, Bitbucket and other bots
https://integram.org
GNU General Public License v3.0
1.54k stars 151 forks source link

Can't reset Application ID and Secret after "The redirect URI included is not valid." #75

Open Lukcyluke opened 5 years ago

Lukcyluke commented 5 years ago

After starting the bot for the first time and answering to a message, I tried to set up the oAuth. The Bot send me this:

Gitlab: To be able to use interactive replies in Telegram, first you need to add oauth application on your hosted GitLab instance (admin priveleges required): https://gitlab.example.com/admin/applications/new Add application with any name(f.e. Telegram) and specify this Redirect URI: https://integram.org/auth/USER_ID

After you press *Submit* you will receive app info. First, send me the *Application ID* (domain and USER_ID are censored)

After successfully sending the bot the Application ID and the Secret I received this message:

Gitlab: You need to authorize me to use interactive replies: https://gitlab.example.com/oauth/authorize?access_type=offline&client_id=APP_ID&redirect_uri=https://integram.org/auth/gitlab/USER_ID&response_type=code&state=36mmrmvj03jddrmi (domain, APP_ID and USER_ID are censored)

When clicking the link, I get the error: The redirect URI included is not valid.

Also note, that the link, when opened, includes the HTML formatted chars %3A, & etc. I also tried the link with encode chars like %3A as : etc. (The link above is formatted as in the message)

To trouble shoot I deleted the Application from my GitLab Applications and added it freshly. But now I can't reset the Application ID and secret. Even after sending /reset or /start. And of corse the asterisks aren't formatted correctly.

I'm not sure if I should open two issues for my problem.