Sign in with Google fails with redirect_uri_mismatch: api callback not registered on the Google client
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- cpp
- Área
- api, authentication
Línea de trabajo
Comienza con app/src/SsoBridge.hpp para confirmar la Google OAuth callback URI y, después, ejecuta la reproducción con curl del issue para el client ID indicado. Se considera terminado cuando las URI de redirección autorizadas aceptan las callbacks de la API y Sign in with Google llega al flujo de inicio de sesión en lugar de producir redirect_uri_mismatch; Apple se menciona, pero no está verificado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
On Linux, "Sign in with Google" always ends at Google's error page:
Access blocked: This app's request is invalid
Error 400: redirect_uri_mismatch
Version: v2026.9.19-1050096260 (URnetwork-2026.9.19-1050096260-amd64.AppImage), NixOS, default ur.network / main network space.
Cause
Per app/src/SsoBridge.hpp, the app opens
https://accounts.google.com/o/oauth2/v2/auth?client_id=338638865390-cg4m0t700mq9073smhn9do81mr640ig1.apps.googleusercontent.com
&redirect_uri=<api>/auth/google/callback&response_type=code&scope=openid%20email%20profile&...
Google rejects that redirect URI for this client id before the account is even chosen, so the callback is not registered as an authorized redirect URI on the web client. This is reproducible without the app or a Google session:
CID=338638865390-cg4m0t700mq9073smhn9do81mr640ig1.apps.googleusercontent.com
for r in https://api.ur.network/auth/google/callback https://api.bringyour.com/auth/google/callback; do
curl -s -o /dev/null -w '%{redirect_url}\n' \
"https://accounts.google.com/o/oauth2/v2/auth?client_id=$CID&redirect_uri=$(python3 -c 'import urllib.parse,sys;print(urllib.parse.quote(sys.argv[1],safe=""))' "$r")&response_type=code&scope=openid%20email%20profile&state=x"
done
Both print https://accounts.google.com/signin/oauth/error?authError=ChVyZWRpcmVjdF91cmlfbWlzbWF0Y2g... (base64 of redirect_uri_mismatch). A registered URI redirects to the sign-in page instead.
https://api.ur.network/auth/google/callback (and the api.bringyour.com variant) need to be added to the client's authorized redirect URIs. Sign in with Apple uses the same <api>/auth/apple/callback shape and is probably in the same state, though I have not verified it.
Workaround
Auth code / email sign-in work fine.
Diagnosed with help from Claude Code.
- Lenguaje dominante
- C++
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 5 h 58 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
FriendsofECCE/ECCE#336 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
bitcoin-core/gui-qml#1030 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
tesseract-robotics/tesseract#1384 ·
-
Fix the silent drop of oversized clusters in the plain EuclideanClusterObjectDetectorPosiblemente ocupada @xmfcx la tomó hoy. Abiertocomponent:perception type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
autowarefoundation/autoware_core#1497 ·
Los mantenedores suelen responder en 2 días