Skip to content
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

JWT authentication & Clean up the board #23

Merged
merged 29 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d29f23d
Clean default board & JWT auth added
hweihwang Jun 7, 2024
693147e
Clean default board & JWT auth added
hweihwang Jun 7, 2024
9e1ab43
Clean default board & JWT auth added
hweihwang Jun 7, 2024
72265f5
Clean default board & JWT auth added
hweihwang Jun 10, 2024
121fc3e
Clean default board & JWT auth added
hweihwang Jun 10, 2024
8a64e9e
Clean default board & JWT auth added
hweihwang Jun 10, 2024
1060838
Clean default board & JWT auth added
hweihwang Jun 11, 2024
96d6ebf
Clean default board & JWT auth added
hweihwang Jun 11, 2024
b8975cf
Clean default board & JWT auth added
hweihwang Jun 11, 2024
ce70cb5
Clean default board & JWT auth added
hweihwang Jun 11, 2024
e671787
Clean default board & JWT auth added
hweihwang Jun 11, 2024
c94e68a
Clean default board & JWT auth added
hweihwang Jun 11, 2024
f0c8f91
Clean default board & JWT auth added
hweihwang Jun 11, 2024
af654a0
Clean default board & JWT auth added
hweihwang Jun 13, 2024
8409c28
feat: sync cursors
hweihwang Jun 14, 2024
85d3322
feat: sync cursors
hweihwang Jun 14, 2024
3e0f95e
feat: Token for file
hweihwang Jun 17, 2024
718ea1d
Merge main
hweihwang Jun 18, 2024
03f28d4
feat: read only handler
hweihwang Jun 18, 2024
6606f6d
feat: read only handler
hweihwang Jun 18, 2024
c3fc74a
feat: read only handler
hweihwang Jun 18, 2024
5b69076
Fix ci/cd errs
hweihwang Jul 1, 2024
cfb4b38
Fix ci/cd errs
hweihwang Jul 1, 2024
ca03642
Fix ci/cd errs
hweihwang Jul 1, 2024
b8a27c5
Fix ci/cd errs
hweihwang Jul 1, 2024
75d48c3
Fix ci/cd errs
hweihwang Jul 1, 2024
2c78568
Fix ci/cd errs
hweihwang Jul 1, 2024
61f5d40
Fix ci/cd errs
hweihwang Jul 1, 2024
3e71568
Fix ci/cd errs
hweihwang Jul 1, 2024
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
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

NEXTCLOUD_URL=http://nextcloud.local
PORT=3002
TLS=false
TLS_KEY=
TLS_CERT=
JWT_SECRET_KEY=your_secret_key
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

.php-cs-fixer.cache
.phpunit.result.cache
.env
2 changes: 2 additions & 0 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

return [
'routes' => [
/** @see JWTController::getJWT() */
['name' => 'JWT#getJWT', 'url' => '{fileId}/token', 'verb' => 'GET'],
/** @see WhiteboardController::update() */
['name' => 'Whiteboard#update', 'url' => '{fileId}', 'verb' => 'PUT'],
/** @see WhiteboardController::show() */
Expand Down
50 changes: 25 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "nextcloud/whiteboard",
"require-dev": {
"phpunit/phpunit": "^9.5",
"nextcloud/coding-standard": "^1.0",
"psalm/phar": "^5.2",
"sabre/dav": "^4.3",
"nextcloud/ocp": "dev-master"
},
"name": "nextcloud/whiteboard",
"config": {
"autoloader-suffix": "Whiteboard",
"optimize-autoloader": true,
"platform": {
"php": "8.0"
}
"php": "8.1"
},
"sort-packages": true
},
"license": "AGPL",
"require": {
"php": "^8.0"
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar",
"test:unit": "phpunit -c tests/phpunit.xml"
},
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/nextcloud/ocp/OCP"
}
"license": "AGPL",
"require": {
"php": "^8.1",
"firebase/php-jwt": "^6.10"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"phpunit/phpunit": "^9.5",
"nextcloud/coding-standard": "^1.0",
"psalm/phar": "^5.2",
"sabre/dav": "^4.3",
"nextcloud/ocp": "dev-master"
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar",
"test:unit": "phpunit -c tests/phpunit.xml"
}
}
Loading
Loading