Compare commits

...

5 commits

5 changed files with 332 additions and 334 deletions

View file

@ -5,14 +5,14 @@
<name>SCIM Service Provider</name> <name>SCIM Service Provider</name>
<summary>Implements SCIM protocol as a Service Provider</summary> <summary>Implements SCIM protocol as a Service Provider</summary>
<description><![CDATA[This app allows to sync users and groups from a scim client.]]></description> <description><![CDATA[This app allows to sync users and groups from a scim client.]]></description>
<version>1.0.0-alpha.1</version> <version>1.0.0-alpha.2</version>
<licence>agpl</licence> <licence>agpl</licence>
<author mail="contact@indiehosters.net" homepage="https://indiehosters.net/">IndieHosters</author> <author mail="contact@indiehosters.net" homepage="https://indiehosters.net/">IndieHosters</author>
<author homepage="https://www.audriga.com/">Audriga</author> <author homepage="https://www.audriga.com/">Audriga</author>
<namespace>SCIMServiceProvider</namespace> <namespace>SCIMServiceProvider</namespace>
<category>integration</category> <category>integration</category>
<bugs>https://lab.libreho.st/libre.sh/scim/scimserviceprovider</bugs> <bugs>https://forge.libre.sh/libre.sh/scimserviceprovider</bugs>
<dependencies> <dependencies>
<nextcloud min-version="27" max-version="29"/> <nextcloud min-version="28" max-version="30"/>
</dependencies> </dependencies>
</info> </info>

View file

@ -17,5 +17,7 @@ return [
['name' => 'group#create', 'url' => '/Groups', 'verb' => 'POST'], ['name' => 'group#create', 'url' => '/Groups', 'verb' => 'POST'],
['name' => 'group#update', 'url' => '/Groups/{id}', 'verb' => 'PUT'], ['name' => 'group#update', 'url' => '/Groups/{id}', 'verb' => 'PUT'],
['name' => 'group#destroy', 'url' => '/Groups/{id}', 'verb' => 'DELETE'], ['name' => 'group#destroy', 'url' => '/Groups/{id}', 'verb' => 'DELETE'],
['name' => 'catch_all#index', 'url' => '/{path}', 'verb' => 'GET'],
] ]
]; ];

View file

@ -1,8 +1,8 @@
{ {
"require-dev": { "require-dev": {
"vimeo/psalm": "^4.23", "vimeo/psalm": "^4.23",
"nextcloud/ocp": "^27.1", "nextcloud/ocp": "^28.0",
"nextcloud/coding-standard": "^1.1" "nextcloud/coding-standard": "^1.3"
}, },
"config": { "config": {
"allow-plugins": { "allow-plugins": {
@ -29,7 +29,6 @@
} }
], ],
"require": { "require": {
"audriga/scim-server-php": "dev-main", "audriga/scim-server-php": "dev-main"
"doctrine/lexer": "^1.2"
} }
} }

629
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace OCA\SCIMServiceProvider\Controller;
use Exception;
use OCA\SCIMServiceProvider\Responses\SCIMJSONResponse;
use OCA\SCIMServiceProvider\Responses\SCIMListResponse;
use OCP\AppFramework\ApiController;
class CatchAllController extends ApiController {
/**
* @NoCSRFRequired
* @PublicPage
*
* @return SCIMListResponse
*/
public function index(string $path): SCIMJSONResponse {
throw new Exception('Not found', 404);
}
}