Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Deleting `storage/statamic/oauth/[provider].php` locks out users

Đang mở
#15,435 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
laravel, php
Lĩnh vực
authentication

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

oauth
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
  1. Setup Statamic with OAuth (e.g. Google)
  2. Login via OAuth
  3. 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

Ngôn ngữ chính
PHP
Star
4.9k
Fork
647
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
113

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của statamic/cms

Tất cả issue của statamic/cms

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.