#104 The redirect uri included is not valid

Closed
opened 4 years ago by binarynos · 7 comments

Hi there! I am trying to install Halcyon (on Ubuntu 18.04/nginx/php-7.2) and Halcyon itself seems to be working fine except that I can't login. After entering the username and authorising access to my Mastodon account, I get a page which shows the account I'm logged in as and this error

The redirect uri included is not valid.

I followed the installation steps as described here https://www.halcyon.social/documentation.php?page=install

  • Edited config.ini
  • Set permissions for data dir
  • Updated nginx.conf

Any ideas why this might be happening? Thanks!

Hi there! I am trying to install Halcyon (on Ubuntu 18.04/nginx/php-7.2) and Halcyon itself seems to be working fine except that I can't login. After entering the username and authorising access to my Mastodon account, I get a page which shows the account I'm logged in as and this error `The redirect uri included is not valid.` I followed the installation steps as described here https://www.halcyon.social/documentation.php?page=install - Edited config.ini - Set permissions for data dir - Updated nginx.conf Any ideas why this might be happening? Thanks!
Ghost commented 4 years ago

The www-data user has access to all Halcyon files?

chown -R www-data:www-data /var/www/halcyon.xxx.tldr

The www-data user has access to all Halcyon files? chown -R www-data:www-data /var/www/halcyon.xxx.tldr
binarynos commented 4 years ago
Poster

The www-data user has access to all Halcyon files?

Yup, it does.

>The www-data user has access to all Halcyon files? Yup, it does.
Ghost commented 4 years ago

Can you put your vHost Configuration and config.ini from Halcyon in a Paste ? Then maybe we can narrow down your problem better.

Can you put your vHost Configuration and config.ini from Halcyon in a Paste ? Then maybe we can narrow down your problem better.
Niklas Poslovski commented 4 years ago
Owner

Yes,vHost config and config.ini would be helpful. Additionally the link to your Halcyon instance would be useful. Then I can try it out myself and maybe see where the wrong url is. That should be easy to find and to fix.

Yes,vHost config and config.ini would be helpful. Additionally the link to your Halcyon instance would be useful. Then I can try it out myself and maybe see where the wrong url is. That should be easy to find and to fix.
binarynos commented 4 years ago
Poster

Here's the links to the configuration files:

I can't give you the links though. Its not online yet. Just testing everything out on localhost.

And I haven't edited the config files. I am using the same server_names:

  • example.com for Mastodon
  • halcyon.example.com for Halcyon
Here's the links to the configuration files: - Halcyon config (nginx vhost) (https://pastebin.com/reDJB6Mt) - config.ini (https://pastebin.com/a9ekjGKE) - Mastodon vhost (https://pastebin.com/ehYyDM8Z) I can't give you the links though. Its not online yet. Just testing everything out on `localhost`. And I haven't edited the config files. I am using the same `server_names`: - example.com for Mastodon - halcyon.example.com for Halcyon
Niklas Poslovski commented 4 years ago
Owner

The ending slash is missing in the url in your config.ini. Maybe that causes the invalid redirect uri error. The vHost configs look fine. Please empty your data directory after editing the config file to prevent further errors.

The ending slash is missing in the url in your config.ini. Maybe that causes the invalid redirect uri error. The vHost configs look fine. Please empty your data directory after editing the config file to prevent further errors.
binarynos commented 4 years ago
Poster

@nipos its working now. Can't believe I missed that slash. Thanks a ton! I think this can be closed now.

@nipos its working now. Can't believe I missed that slash. Thanks a ton! I think this can be closed now.
Sign in to join this conversation.
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.