declare all OAuth scopes and enable enforce_configured_scopes
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- ruby
- Área
- authentication, backend, security
Línea de trabajo
Start with doorkeeper.rb and locate the optional_scopes declaration and the commented enforce_configured_scopes setting. Find the app's actual requested scopes and ensure they are all declared before enabling enforcement. Done means undeclared scopes are rejected at authorize time; the issue also calls for auditing registered app scopes before deployment.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
problem
doorkeeper.rb declares only 4 optional scopes (openid, profile, phone, birthdate) but the app uses 12+: email, name, groups, verification_status, slack_id, legal_name, basic_info, address, set_slack_id, etc. enforce_configured_scopes is commented out.
any app can request scope=literally_anything and doorkeeper puts it on the token. the RS ignores unrecognized scopes at render time so nothing leaks, but tokens carry junk scopes. token exchange (RFC 8693) needs a canonical scope list to validate downscoping against.
fix
add all real scopes to optional_scopes and uncomment enforce_configured_scopes. apps requesting undeclared scopes get rejected at authorize time.
behavioral change: any app currently requesting an undeclared scope will start getting rejected. audit existing apps' registered scopes before deploying.
- Lenguaje dominante
- Ruby
- Estrellas
- 85
- Forks
- 72
- Merge medio
- 3 d 12 h
- PR fusionados (30 d)
- 22
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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.
Más de hackclub/auth
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
Los mantenedores suelen responder en 1 día
Todos los issues de hackclub/auth
Issues similares
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
ruby/securerandom#92 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
open-feature/ruby-sdk-contrib#340 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
zold-io/wts.zold.io#651 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
erkamyaman/rust-anything#788 ·
Los mantenedores suelen responder en 1 día