You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix OAuth token validation vulnerabilities and add comprehensive test coverage (#292)
* Initial plan
* Fix OAuth token validation vulnerabilities in multiple providers
Co-authored-by: overtrue <[email protected]>
* Fix additional WeWork vulnerabilities and add comprehensive tests
Co-authored-by: overtrue <[email protected]>
* Add comprehensive test coverage for all OAuth providers
- Expanded QQTest with redirect URL testing, token handling, user mapping, and error scenarios
- Enhanced DingTalkTest with configuration testing, signature validation, and complete flow coverage
- Improved DouYinTest with URL validation, token processing, user data handling, and edge cases
- Extended WeWorkTest with OAuth URL generation, QR code mode, detailed user flow, and configuration testing
- Broadened OpenWeWorkTest with redirect handling, user type configuration, and comprehensive user mapping
- Augmented AlipayTest with sandbox mode, signature generation, field validation, and complete token flow
All tests now cover normal functionality, configuration scenarios, method behaviors, error cases, and edge cases as requested in code review feedback.
Co-authored-by: overtrue <[email protected]>
* Fix DingTalk open_id validation and test namespace issues
- Add specific validation for open_id field in DingTalk provider user_info response
- Fix test namespaces to use 'Providers' instead of 'Tests\Providers' for consistency
- Correct test data structures to use proper field names (open_id vs openid)
Co-authored-by: overtrue <[email protected]>
* Fix test namespaces, assertions and HTTP client mocking in QQ and DingTalk tests
Co-authored-by: overtrue <[email protected]>
* Fix additional test files - DouYin tests now passing, major reduction in test failures
Co-authored-by: overtrue <[email protected]>
* Fix all remaining test failures - HTTP client mocking and variable naming issues resolved
Co-authored-by: overtrue <[email protected]>
* Add composer fix command using Laravel Pint for code formatting
Co-authored-by: overtrue <[email protected]>
* Fix PHPStan error: remove redundant null coalescing operator in QQ provider
Co-authored-by: overtrue <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: overtrue <[email protected]>
0 commit comments