Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
8eb682c
CoreApi.PersonProfiles API v2.Configuration view and REST API v2 rout…
Ioannis Jul 5, 2026
5b8ee1b
fix configuration page display field
Ioannis Jul 6, 2026
f654e0d
Added crud person actions. Added template for index and view. Added o…
Ioannis Jul 6, 2026
1c82efc
Initial implementation of index. Start honoring plugin configurations…
Ioannis Jul 6, 2026
a59ae91
Added index native pagination.Added query parameter parsing and valid…
Ioannis Jul 7, 2026
4feca3c
Fix index slim response. Fixed Delete response.
Ioannis Jul 7, 2026
58111bd
Fix index slim response. Fixed Delete response.
Ioannis Jul 7, 2026
00a0cda
Fix full profile to include nested person and external identity roles…
Ioannis Jul 7, 2026
303c45d
Create a ViewHelper for the person profile template
Ioannis Jul 7, 2026
c74d450
upsert improvements and initial testing
Ioannis Jul 7, 2026
166b043
Initial Create. Improved full profile json objects. Improved data met…
Ioannis Jul 8, 2026
139b5c9
Create new Person
Ioannis Jul 8, 2026
ebdf81c
Upsert fix dynamic contains. Fix mveas reconciliation.
Ioannis Jul 8, 2026
8c2cc98
Refactor applyPersonProfileAssociations to a more dynamic version
Ioannis Jul 9, 2026
14bee9f
Create external identity: dynamic calculation of contain.
Ioannis Jul 9, 2026
6050037
refactor according to DRY
Ioannis Jul 9, 2026
18e980f
Fix update/create responses. Improve code.
Ioannis Aug 7, 2026
5cb7dec
Updated JSON schema and OpenAPI specs to reflect the new structure an…
Ioannis Aug 7, 2026
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
55 changes: 55 additions & 0 deletions app/plugins/CoreApi/config/match_callbacks_routes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/**
* CoreApi plugin specific routes.
*
* Portions licensed to the University Corporation for Advanced Internet
* Development, Inc. ("UCAID") under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* UCAID licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @link https://www.internet2.edu/comanage COmanage Project
* @package registry-plugins
* @since COmanage Registry v5.2.0
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

use Cake\Http\Middleware\BodyParserMiddleware;
use Cake\Routing\RouteBuilder;

// Match Callback Receiver
// (https://spaces.at.internet2.edu/display/COmanage/Match+Resolution+Endpoint+Notification)
$routes->scope('/api/match', function (RouteBuilder $builder) {
// Register scoped middleware for in scopes.
// Do not enable CSRF for the REST API, it will break standard (non-AJAX) clients
// $builder->registerMiddleware('csrf', new CsrfProtectionMiddleware(['httponly' => true]));
// BodyParserMiddleware will automatically parse JSON bodies, but we only
// want that for API transactions, so we only apply it to the /api scope.
$builder->registerMiddleware('match_bodyparser', new BodyParserMiddleware());
/*
* Apply a middleware to the current route scope.
* Requires middleware to be registered through `Application::routes()` with `registerMiddleware()`
*/
// Do not enable CSRF for the REST API, it will break standard (non-AJAX) clients
// $builder->applyMiddleware('csrf');
$builder->setExtensions(['json']);
$builder->applyMiddleware('match_bodyparser');

$builder->post(
'/{coid}/v1/resolution',
['plugin' => 'CoreApi', 'controller' => 'MatchCallbackApiV1', 'action' => 'resolveMatch']
)
->setPass(['coid'])
->setPatterns(['coid' => '[0-9]+']);
});
Loading