Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
51d2289
Add trashbin migrator to export and import trashbin data
come-nc Mar 15, 2022
865ac4b
Rename $insert var to $qb
come-nc Mar 17, 2022
ee88887
Fixes the undefined index error with the DAV property getlastmodified
Maaxxs Mar 19, 2022
e0a5fe6
Fix typo.
Maaxxs Mar 20, 2022
53c731d
Rename PATH constants to show if folder or file
come-nc Mar 22, 2022
3a135f0
Set `mtime` to null instead of false if `getlastmodified` does not ex…
Maaxxs Mar 23, 2022
ecbcfca
Improve wording of output for trashbin migrator
come-nc Mar 24, 2022
6be7aa1
Migrate from ILogger to LoggerInterface in lib/private
come-nc Mar 17, 2022
eb961e4
Adapted Server to logger migration in constructors
come-nc Mar 17, 2022
ea23523
Adapt more code to migration to LoggerInterface
come-nc Mar 17, 2022
e8c1f75
Fixing psalm errors
come-nc Mar 21, 2022
61f7f13
Migrate from ILogger to LoggerInterface where needed in the tests
come-nc Mar 21, 2022
1809386
Fix codestyle
come-nc Mar 21, 2022
25e7374
Fix ILogger instances in application tests for core parameters
come-nc Mar 21, 2022
3546cfb
Fix more ILogger related problems from tests
come-nc Mar 21, 2022
f1febfe
Fix log level for exception in QueryBuilder
come-nc Mar 22, 2022
6d35459
Prepare for ILogger drop in RootCollectionTest
come-nc Mar 22, 2022
7fa8b2e
Add a guard to check that trashbin folder is a folder
come-nc Mar 24, 2022
c572286
Add oauth2_clients migration for Owncloud
artonge Dec 16, 2021
7dc3eb1
Use getLengthExpression to measure field length instead of like
come-nc Mar 24, 2022
efebbac
Add octetLength and charLength to function builder, and tests
come-nc Mar 24, 2022
bfd09a0
Avoid select with no FROM clause for Oracle in tests
come-nc Mar 24, 2022
25af856
Use OCTET_LENGTH which is more common than LENGTHB
come-nc Mar 24, 2022
e8122f2
show warning in update admin overview
szaimen Mar 11, 2022
7bcc183
Set max length to app token field to match backend
PVince81 Mar 25, 2022
de5af8e
invalidate mount cache after accepting or renaming federated share
icewind1991 Mar 25, 2022
13b7dfa
Merge pull request #31708 from nextcloud/enh/noid/apptoken-maxlength
Pytal Mar 25, 2022
5b42a64
Bump babel-loader from 8.2.3 to 8.2.4
dependabot[bot] Mar 26, 2022
08b72fe
Bump @testing-library/jest-dom from 5.16.2 to 5.16.3
dependabot[bot] Mar 26, 2022
ba1b20a
[tx-robot] updated from transifex
nextcloud-bot Mar 26, 2022
2e86f22
Merge pull request #31715 from nextcloud/dependabot/npm_and_yarn/babe…
dependabot[bot] Mar 26, 2022
b98824e
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 26, 2022
d715a22
Merge pull request #31722 from nextcloud/dependabot/npm_and_yarn/mini…
dependabot[bot] Mar 26, 2022
7407a32
Fix LENGTH function name across databases
come-nc Mar 27, 2022
53180f4
[tx-robot] updated from transifex
nextcloud-bot Mar 28, 2022
8038866
Add direct arg to login flow
PVince81 Jan 25, 2022
9db75db
Merge pull request #30276 from nextcloud/feature/add_oauth2_migration
artonge Mar 28, 2022
d116622
Bump @nextcloud/vue from 5.1.1 to 5.2.1
dependabot[bot] Mar 28, 2022
e72b82d
Merge pull request #31716 from nextcloud/dependabot/npm_and_yarn/next…
dependabot[bot] Mar 28, 2022
9509cb6
Bump jquery-migrate from 3.3.2 to 3.4.0
dependabot[bot] Mar 28, 2022
ee00656
migration generator also includes copyright section
blizzz Mar 28, 2022
427001b
Merge pull request #31717 from nextcloud/dependabot/npm_and_yarn/jque…
dependabot[bot] Mar 28, 2022
39494fb
Merge pull request #31718 from nextcloud/dependabot/npm_and_yarn/test…
artonge Mar 28, 2022
d31bc9f
Disable bulk upload by not advertising it
PVince81 Feb 14, 2022
e1e003f
Also comment out in test
nickvergessen Feb 15, 2022
4e11d7d
address reviews
szaimen Mar 25, 2022
8acefc9
Merge pull request #31537 from nextcloud/enh/31533/disable-webupdater…
szaimen Mar 28, 2022
2952c7d
Use the null coalescing operator to set the value of `size`.
Maaxxs Mar 28, 2022
c28a4c2
[tx-robot] updated from transifex
nextcloud-bot Mar 29, 2022
bdfc656
Merge pull request #31736 from nextcloud/bugfix/noid/disable-bulkupload
nickvergessen Mar 29, 2022
4a4f250
Merge pull request #31696 from nextcloud/fix/user_ldap-fix-migration-…
come-nc Mar 29, 2022
765999f
Merge pull request #31609 from nextcloud/fix/migrate-away-from-ilogger
come-nc Mar 29, 2022
262d22f
Merge pull request #31711 from nextcloud/mount-cache-external-share
PVince81 Mar 29, 2022
ae1a820
Fix user counts updates on user add/remove
Mar 7, 2022
7d2cb35
Merge pull request #31632 from Maaxxs/fix-undefined-index-dav
artonge Mar 29, 2022
93d0c60
Merge pull request #31697 from nextcloud/enh/27607/fix-user-count
artonge Mar 29, 2022
b984cd1
Merge pull request #31575 from nextcloud/enh/add-trashbin-migrator
come-nc Mar 29, 2022
9191ca4
Merge pull request #31735 from nextcloud/fix/noid/mig-generator-copyr…
come-nc Mar 29, 2022
576e4e8
Merge pull request #31592 from nextcloud/fix/direct-arg-flow-v2
PVince81 Mar 29, 2022
e4f1d41
Skip import of current calendar on error
Pytal Mar 24, 2022
cdb93e7
Show filename in output message
Pytal Mar 29, 2022
c57a001
Merge pull request #31690 from nextcloud/fix/throw-import-calendar-error
Pytal Mar 30, 2022
cf4c77e
[tx-robot] updated from transifex
nextcloud-bot Mar 30, 2022
86821dd
Increase check if support reactions
vitormattos Mar 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions core/Controller/ClientFlowLoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,8 @@ private function stateTokenForbiddenResponse() {
* @PublicPage
* @NoCSRFRequired
* @UseSession
*
* @param string $clientIdentifier
*
* @return StandaloneTemplateResponse
*/
public function showAuthPickerPage($clientIdentifier = '', $user = '') {
public function showAuthPickerPage(string $clientIdentifier = '', string $user = '', int $direct = 0): StandaloneTemplateResponse {
$clientName = $this->getClientName();
$client = null;
if ($clientIdentifier !== '') {
Expand Down Expand Up @@ -219,6 +215,7 @@ public function showAuthPickerPage($clientIdentifier = '', $user = '') {
'serverHost' => $this->getServerPath(),
'oauthState' => $this->session->get('oauth.state'),
'user' => $user,
'direct' => $direct,
],
'guest'
);
Expand All @@ -232,13 +229,10 @@ public function showAuthPickerPage($clientIdentifier = '', $user = '') {
* @NoCSRFRequired
* @NoSameSiteCookieRequired
* @UseSession
*
* @param string $stateToken
* @param string $clientIdentifier
* @return StandaloneTemplateResponse
*/
public function grantPage($stateToken = '',
$clientIdentifier = '') {
public function grantPage(string $stateToken = '',
string $clientIdentifier = '',
int $direct = 0): StandaloneTemplateResponse {
if (!$this->isValidToken($stateToken)) {
return $this->stateTokenForbiddenResponse();
}
Expand Down Expand Up @@ -268,6 +262,7 @@ public function grantPage($stateToken = '',
'stateToken' => $stateToken,
'serverHost' => $this->getServerPath(),
'oauthState' => $this->session->get('oauth.state'),
'direct' => $direct,
],
'guest'
);
Expand Down
5 changes: 4 additions & 1 deletion core/templates/loginflow/authpicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<br/>

<p id="redirect-link">
<a href="<?php p($urlGenerator->linkToRoute('core.ClientFlowLogin.grantPage', ['stateToken' => $_['stateToken'], 'clientIdentifier' => $_['clientIdentifier'], 'oauthState' => $_['oauthState'], 'user' => $_['user']])) ?>">
<a href="<?php p($urlGenerator->linkToRoute('core.ClientFlowLogin.grantPage', ['stateToken' => $_['stateToken'], 'clientIdentifier' => $_['clientIdentifier'], 'oauthState' => $_['oauthState'], 'user' => $_['user'], 'direct' => $_['direct']])) ?>">
<input type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Log in')) ?>">
</a>
</p>
Expand All @@ -62,6 +62,9 @@
</p>
<input type="hidden" name="stateToken" value="<?php p($_['stateToken']) ?>" />
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
<?php if ($_['direct'] !== 0) { ?>
<input type="hidden" name="direct" value="<?php p($_['direct']) ?>">
<?php } ?>
<input id="submit-app-token-login" type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Grant access')) ?>">
</form>

Expand Down
15 changes: 9 additions & 6 deletions core/templates/loginflow/grant.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@
<br/>

<p id="redirect-link">
<form method="POST" action="<?php p($urlGenerator->linkToRouteAbsolute('core.ClientFlowLogin.generateAppPassword')) ?>">
<input type="hidden" name="clientIdentifier" value="<?php p($_['clientIdentifier']) ?>" />
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
<input type="hidden" name="stateToken" value="<?php p($_['stateToken']) ?>" />
<input type="hidden" name="oauthState" value="<?php p($_['oauthState']) ?>" />
<form method="POST" action="<?php p($urlGenerator->linkToRouteAbsolute('core.ClientFlowLogin.generateAppPassword')) ?>">
<input type="hidden" name="clientIdentifier" value="<?php p($_['clientIdentifier']) ?>" />
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
<input type="hidden" name="stateToken" value="<?php p($_['stateToken']) ?>" />
<input type="hidden" name="oauthState" value="<?php p($_['oauthState']) ?>" />
<?php if (p($_['direct'])) { ?>
<input type="hidden" name="direct" value="1" />
<?php } ?>
<div id="submit-wrapper">
<input type="submit" class="login primary icon-confirm-white" title="" value="<?php p($l->t('Grant access')); ?>" />
</div>
</div>
</form>
</p>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ public function afterException($controller, $methodName, \Exception $exception):
if ($usernamePrefill !== '') {
$params['user'] = $usernamePrefill;
}
if ($this->request->getParam('direct')) {
$params['direct'] = 1;
}
$url = $this->urlGenerator->linkToRoute('core.login.showLoginForm', $params);
$response = new RedirectResponse($url);
} else {
Expand Down
2 changes: 2 additions & 0 deletions tests/Core/Controller/ClientFlowLoginControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ public function testShowAuthPickerPageWithOcsHeader() {
'serverHost' => 'https://example.com',
'oauthState' => 'OauthStateToken',
'user' => '',
'direct' => 0
],
'guest'
);
Expand Down Expand Up @@ -248,6 +249,7 @@ public function testShowAuthPickerPageWithOauth() {
'serverHost' => 'https://example.com',
'oauthState' => 'OauthStateToken',
'user' => '',
'direct' => 0
],
'guest'
);
Expand Down