julianpoy / RecipeSage

A Collaborative Recipe Keeper, Meal Planner, and Shopping List Organizer in PWA form.
https://recipesage.com
572 stars 55 forks source link

Weblate account registration using Github is broken #1367

Closed notizklotz closed 3 months ago

notizklotz commented 3 months ago

Describe the bug When I try to to create a new account for RecipeSage's Weblate I receive an error message if clicking on the Github button. Having a look at the HTTP requests being sent, it seems that the redirect URL is wrongly configured in the project's Github settings:

302 POST https://weblate.recipesage.com/accounts/login/github/
302 GET https://github.com/login/oauth/authorize?client_id=3cd1c71ec4af3bf03b50&redirect_uri=http://weblate.recipesage.com/accounts/complete/github/&state=somestate&response_type=code&scope=user:email
302 GET https://weblate.recipesage.com/accounts/complete/github/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=somestate

What page/area is the bug in? https://weblate.recipesage.com/accounts/register

To Reproduce Steps to reproduce the behavior:

  1. Go to https://weblate.recipesage.com/accounts/register
  2. Click on "Create an account using: Github"
  3. Notification is displayed: 'Could not authenticate, probably due to an expired token or connection error. '

Desktop (please complete the following information):

julianpoy commented 3 months ago

This should be fixed now, thanks for the report!