Closed jvillafanez closed 1 year ago
phpstan does not like this .... maybe some reflection magic is necessary ...
Passing too many arguments to a function is indeed legal in php. So we could add /* @phpstan-ignore-line / or be more explicit as deepdiver suggested. Maybe no reflection needed and we can use call_user_func_array or similar.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Description
Send the auth module class in the login function to core can recognize the login type. This means that login via openid connect using the login button will be recognized as such login type, otherwise core won't be able to recognize it as an openid connect login.
The change is expected to be backwards-compatible with all ownCloud versions. Sending more parameters that what are required shouldn't cause problems
Related Issue
Piece for https://github.com/owncloud/enterprise/issues/5295
Motivation and Context
How Has This Been Tested?
A log entry (info level) is expected notifying the login with the openidconnect module. Note that https://github.com/owncloud/core/pull/40520 is required for the log entry to appear:
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: