Skip to content

Commit

Permalink
Implement JWT tokens for external site links
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 10, 2022
1 parent f626785 commit b655017
Show file tree
Hide file tree
Showing 17 changed files with 8,242 additions and 4,713 deletions.
55 changes: 55 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
- package-ecosystem: composer
directory: "/vendor-bin/csfixer"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
- package-ecosystem: composer
directory: "/vendor-bin/mozart"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
- package-ecosystem: composer
directory: "/vendor-bin/phpunit"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
- package-ecosystem: composer
directory: "/vendor-bin/psalm"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
ignore:
- dependency-name: css-loader
versions:
- ">= 4.a"
- "< 5"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ build
/node_modules
/js/dist
/vendor
/vendor-bin/*/vendor
/lib/Vendor
.php-cs-fixer.cache
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ appstore: clean npm-init build-js-production
--exclude=/tests \
--exclude=/translationfiles \
--exclude=/vendor \
--exclude=/vendor-bin \
--exclude=.php-cs-fixer.cache \
--exclude=.php-cs-fixer.dist.php \
--exclude=/composer.json \
Expand Down
52 changes: 42 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"autoload": {
"psr-4": {
"OCA\\External\\\\": "lib/"
}
},
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/nextcloud/ocp/OCP"
}
},
"require-dev": {
"nextcloud/coding-standard": "^1",
"vimeo/psalm": "^4.24",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpunit/phpunit": "^9.5",
"nextcloud/ocp": "dev-master"
"nextcloud/ocp": "dev-master",
"roave/security-advisories": "dev-latest"
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -13,19 +20,44 @@
"psalm": "psalm --threads=1",
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType"
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"post-install-cmd": [
"@composer bin all install --ansi",
"\"vendor/bin/mozart\" compose",
"composer dump-autoload"
],
"post-update-cmd": [
"@composer bin all update --ansi",
"\"vendor/bin/mozart\" compose",
"composer dump-autoload"
]
},
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"composer/package-versions-deprecated": true
},
"autoloader-suffix": "Talk",
"classmap-authoritative": true,
"optimize-autoloader": true,
"platform": {
"php": "7.4"
}
},
"sort-packages": true
},
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/nextcloud/ocp/OCP"
"extra": {
"mozart": {
"dep_namespace": "OCA\\External\\Vendor\\",
"dep_directory": "/lib/Vendor/",
"classmap_directory": "/lib/autoload/",
"classmap_prefix": "NEXTCLOUDEXTERNALSITES_",
"packages": [
"firebase/php-jwt"
]
}
},
"require": {
"bamarni/composer-bin-plugin": "^1.8",
"firebase/php-jwt": "^6.3"
}
}
Loading

0 comments on commit b655017

Please sign in to comment.