-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Disable app token creation for impersonated people, ref #15539 #15936
Disable app token creation for impersonated people, ref #15539 #15936
Conversation
32351cb
to
d41b561
Compare
This should also be checked on the actual endpoint that is being called. |
25b4d7b
to
2ed59f4
Compare
@GretaD time to fixup and rebase |
c94da72
to
1f441b9
Compare
* @return string|null | ||
* @since 17.0.0 | ||
*/ | ||
public function getImpersonatingUserID(): ?string; |
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.
PHP Fatal error: Class Mock_IUserSession_84aca509 contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (OCP\IUserSession::getImpersonatingUserID, OCP\IUserSession::setImpersonatingUserID) in phar:///usr/local/bin/phpunit/phpunit-mock-objects/Generator.php(264) : eval()'d code on line
seems like there are some usages in unit tests which are not working as expected
There are still some errors from testing, e.g.:
and the webpack build complains about uncomitted changes. @GretaD do you want to give it a look? |
47ef208
to
ee02bd6
Compare
Now I think you have to rebuild the JS part ( |
/compile amend / |
a9174c3
to
84beca9
Compare
84beca9
to
fdd0cfe
Compare
/compile amend /settings |
fdd0cfe
to
1542c8c
Compare
This would then require also additions to the impersonate app 😉 |
Signed-off-by: Greta Doci <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Greta Doci <[email protected]>
Signed-off-by: Greta Doci <[email protected]> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
1542c8c
to
68ef242
Compare
I updated the phpdoc and rebased. Will emrge after |
Seems there was a small bug in #15936 This inverts the check and add the property Signed-off-by: Roeland Jago Douma <[email protected]>
Seems there was a small bug in #15936 This inverts the check and add the property Signed-off-by: Roeland Jago Douma <[email protected]>
ref #15539
I created a new method for getter and setter, so impersonate app would not set and get the variable directly, but use this method.