Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Nextcloud: API invite manager #299

Closed
wants to merge 59 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f2fbf55
add API routes, add ApiController
parhamin2010 May 1, 2023
b6a56b1
add ApiController.php, add migration for ocm_tokens and ocm_remote_us…
parhamin2010 May 4, 2023
e63284e
add API methods (authenticate, addToken, getToken, TokenList), change…
parhamin2010 May 4, 2023
675e42a
add API methods (authenticate, addToken, getToken, TokenList), change…
parhamin2010 May 4, 2023
9673701
add new migration for db changes on remote_table & tokens, change API…
parhamin2010 May 8, 2023
8eb5939
add comments
parhamin2010 May 8, 2023
435c4ea
some modification on apicontroller method for get the params instead …
parhamin2010 May 10, 2023
f1853c3
remove initiator from get_token method
parhamin2010 May 12, 2023
ad8454d
remove email param from ocm_remote_user query
parhamin2010 May 12, 2023
ef89eb5
Adapt to new invite generation endpoint (draft)
michielbdejong Feb 22, 2023
8bd8b23
Fix token generation
michielbdejong Feb 22, 2023
70ef1d3
resolve conflicts on contact.js
parhamin2010 May 19, 2023
a491071
Adapt search plugin
michielbdejong Feb 22, 2023
888616e
TODO: get permissions from inside the protocol
Apr 4, 2023
91267c4
fix token generator url json problem, https://github.com/pondersource…
parhamin2010 Apr 27, 2023
dc4d73c
add removed } for internal error
parhamin2010 Apr 27, 2023
e21d2c9
Attempt to fix https://github.com/pondersource/sciencemesh-php/issues…
michielbdejong Apr 27, 2023
9491bef
Http::STATUS_INTERNAL_SERVER_ERROR
michielbdejong Apr 27, 2023
f964216
Remove comment
michielbdejong Apr 27, 2023
971011a
Deal with response from /sciencemesh/accept-invite
michielbdejong May 6, 2023
4296f5b
Deal with non-URL idp
michielbdejong May 6, 2023
da6d845
add provider
michielbdejong May 6, 2023
3e809dd
fix missing recipientHost in call to /sciencemesh/create-share
michielbdejong May 6, 2023
4a54352
params[share]... -> params...
michielbdejong May 7, 2023
bea6d5c
Fix storing of sharedSecret (token) in addSentShare
michielbdejong May 7, 2023
25bdc03
working on #293
michielbdejong May 7, 2023
da3761d
Fixed reading permissions from the reva incoming request
yasharpm May 8, 2023
00f8d6f
deal with null accepted users
michielbdejong May 8, 2023
64a53bf
Mrv/share dialog (#297)
mrvahedi68 May 8, 2023
ef4d34b
get sharedSecret from the right array member
michielbdejong May 8, 2023
da1b8a3
Tag v0.2.0
michielbdejong May 9, 2023
14efd4a
Tag v0.3.0
michielbdejong May 9, 2023
0aafc3b
Built v0.3.0
michielbdejong May 9, 2023
9abd7f3
info.xml did not validate: The value 'mit' is not an element of the s…
michielbdejong May 9, 2023
b036f10
Tag v0.3.1
michielbdejong May 9, 2023
6a03fd1
Built v0.3.1
michielbdejong May 9, 2023
37dc8bb
remove: error_logs
MahdiBaghbani May 9, 2023
a58ff15
remove: whitespace
MahdiBaghbani May 9, 2023
11163b8
Fix #300
michielbdejong May 10, 2023
30b033f
Get remote out of URI
michielbdejong May 10, 2023
7c3cbc1
Tag v0.4.0
michielbdejong May 10, 2023
12002cf
Build v0.4.0
michielbdejong May 10, 2023
ffb8618
Update release.sh
michielbdejong May 11, 2023
720c0a7
modify: initial use of inheritance for creating share provider class
Apr 13, 2023
5e21e5d
fix: call parent constructor to avoid breaking nextcloud
Apr 13, 2023
b52c9e5
modify: class signature to make parent constructor happy!
Apr 14, 2023
a4f3847
fix: use statements.
Apr 14, 2023
0e6015d
add: parent class stub file which has replaced private with protected.
Apr 14, 2023
5ccfd71
add: people who had contributed to the project and missing emails
Apr 14, 2023
94b81e6
remove: unnecessary use statement
Apr 14, 2023
45d8915
modify: rename file and apply final changes
Apr 17, 2023
21837a3
fix: mixed space and tabs
Apr 17, 2023
8629a14
Add missed use statement
mrvahedi68 May 10, 2023
f71b83f
remove error log
MahdiBaghbani May 12, 2023
0da7f48
add `use OCA\ScienceMesh\AppInfo\ScienceMeshApp;`
MahdiBaghbani May 15, 2023
1992b08
Merge branch 'sciencemesh' into issue-290
parhamin2010 May 19, 2023
87b3d0d
fix config key
mrvahedi68 May 23, 2023
a9c853c
add public api annotation
mrvahedi68 May 30, 2023
5860923
bugfix and finalization
mrvahedi68 Jun 7, 2023
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
Prev Previous commit
Next Next commit
Adapt search plugin
  • Loading branch information
michielbdejong authored and parhamin2010 committed May 19, 2023
commit a491071306667d6c004f41d2f51065cd013a8fb5
6 changes: 1 addition & 5 deletions lib/Plugins/ScienceMeshSearchPlugin.php
Original file line number Diff line number Diff line change
@@ -32,11 +32,7 @@ public function __construct(IConfig $config, IUserManager $userManager, IUserSes
}

public function search($search, $limit, $offset, ISearchResult $searchResult) {
$result = json_decode($this->revaHttpClient->findAcceptedUsers($this->userId), true);
if (!isset($result['accepted_users'])) {
return;
}
$users = $result['accepted_users'];
$users = json_decode($this->revaHttpClient->findAcceptedUsers($this->userId), true);

$users = array_filter($users, function ($user) use ($search) {
return (stripos($user['display_name'], $search) !== false);