-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce UserSession::verifyAuthHeaders which validates the session … #28733
Conversation
@DeepDiver1975 is this still a WIP? |
yes still WIP - will be back on this after the conference ... |
@PVince81 ping |
@DeepDiver1975 any chance to finish this for 10.0.4 ? It is a blocker for all clients. Without this, they all need to build in ugly workarounds. |
@DeepDiver1975 please post a list of remaining tasks/issues so someone else can take over |
|
022145e
to
2f66e0e
Compare
|
god damn - my latest changes of today are resulting in an infinite loop ..... 💥 |
👍 @DeepDiver1975 ping us again when is ready to test |
2f66e0e
to
b6e6eab
Compare
@nasli ping 😉 |
@@ -124,10 +124,10 @@ public function getInstalledApps() { | |||
/** | |||
* List all apps enabled for a user | |||
* | |||
* @param \OCP\IUser $user | |||
* @param \OCP\IUser|null $user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm then checkAppForUser in line 165 also needs te allow null in the phpdocs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed
Great!! Thanks @DeepDiver1975, spoiler! Jesus has made first tests and seems to work fine, we let you know |
ping us when it is (finally) ready. |
so it seems the code is ready apart from the PHPDoc comment ? this checkbox item still requires attention:
What needs to be retested ? Everything auth related, all auth types, shibboleth, etc ? |
@davitol is going to try and break this with different auth types. @DeepDiver1975 assuming this is done apart from the PHPDoc issue |
Tests results:
|
bc662ae
to
b886660
Compare
@PVince81 this is for 10.0.4 - right? I need to adjust the since annotation then |
@DeepDiver1975 yes please, thanks |
b886660
to
c024a41
Compare
Codecov Report
@@ Coverage Diff @@
## master #28733 +/- ##
============================================
+ Coverage 61.37% 61.39% +0.01%
- Complexity 17436 17472 +36
============================================
Files 1042 1044 +2
Lines 57630 57695 +65
============================================
+ Hits 35368 35419 +51
- Misses 22262 22276 +14
Continue to review full report at Codecov.
|
lib/public/App/IServiceLoader.php
Outdated
use OCP\IUser; | ||
|
||
/** | ||
* Interface IServiceLoader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPDoc... what's a service loader, what's a service, etc.
* @return \Generator | ||
* @since 10.0.4 | ||
*/ | ||
public function load(array $xmlPath, IUser $user = null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPDoc, what are we loading here ? People looking at the docs of \OC::$server::load will wonder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add missing PHPDoc then merge and backport 👍
…against given auth headers like basic auth or oauth
c024a41
to
719b5f6
Compare
Backport stable10 #29525 |
Regression: #30157 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
…against given auth headers like basic auth or oauth
Description
Related Issue
#28707
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: