Deleting `storage/statamic/oauth/[provider].php` locks out users
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- authentication
Línea de trabajo
Start by reading the OAuth user-matching change in linked pull request #14899 and tracing how storage/statamic/oauth/[provider].php is used. Reproduce the reported login failure after deleting the provider file; done means either OAuth login still works or the documentation clearly states that the file must be persisted, depending on the intended behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
Since the OAuth users are only matched by Provider ID anymore (e.g. Google ID), users can not login if the file in storage/statamic/oauth/[provider].php is deleted.
The only way to regain access is to login via email and connect the provider manually again.
I'm not 100% sure if this is a bug, but if not, I think it should be stated in the docs that storage/statamic/oauth/[provider].php needs to be persisted.
How to reproduce
- Setup Statamic with OAuth (e.g. Google)
- Login via OAuth
- Delete
storage/statamic/oauth/[provider].php(e.g.storage/statamic/oauth/google.php)
Logs
Environment
Environment
Laravel Version: 13.30.1
PHP Version: 8.5.8
Composer Version: 2.10.2
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: de
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: pusher
Cache: redis
Database: pgsql
Logs: daily
Mail: smtp
Queue: database
Session: redis
Storage
public/storage: LINKED
Livewire
Livewire: v4.4.3
Statamic
Addons: 2
License Key: Set
Sites: 1
Stache Watcher: Disabled
Static Caching: Disabled
Version: 6.31.0 PRO
Statamic Addons
statamic/eloquent-driver: 5.11.1
statamic/seo-pro: 7.14.1
Statamic Eloquent Driver
Addon Settings: file
Asset Containers: eloquent
Assets: eloquent
Blueprints: file
Collection Trees: eloquent
Collections: file
Entries: eloquent
Fieldsets: file
Form Submissions: eloquent
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: eloquent
Navigations: file
Revisions: eloquent
Sites: file
Taxonomies: file
Terms: file
Tokens: file
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
- Lenguaje dominante
- PHP
- Estrellas
- 4.9k
- Forks
- 647
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 113
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.
Más de statamic/cms
-
preferences
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Make native filesystem directory permissions configurable to support shared POSIX ACL accessAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
antlers
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
navigations
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de statamic/cms
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
scanaislop/aislop#482 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
humanmade/publication-checklist#73 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Werkstattl/OpenBlogware#92 ·