Deleting `storage/statamic/oauth/[provider].php` locks out users
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
- 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ả
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
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của statamic/cms
-
preferences
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Make native filesystem directory permissions configurable to support shared POSIX ACL accessĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[7.x] Reintroduce parser error for mixed pipe/shorthand modifier syntaxCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởantlers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
navigations
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Перевод устарел
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Adapter: Algolia Performance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100