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
dd020e0
CoreApi.PersonProfiles API v2.Configuration view and REST API v2 rout…
Ioannis Jul 5, 2026
6a1249f
fix configuration page display field
Ioannis Jul 6, 2026
ad1702b
Added crud person actions. Added template for index and view. Added o…
Ioannis Jul 6, 2026
4a7ae99
Initial implementation of index. Start honoring plugin configurations…
Ioannis Jul 6, 2026
359ce06
Added index native pagination.Added query parameter parsing and valid…
Ioannis Jul 7, 2026
063f7dc
Fix index slim response. Fixed Delete response.
Ioannis Jul 7, 2026
1b48a4d
Fix index slim response. Fixed Delete response.
Ioannis Jul 7, 2026
76f8a8b
Fix full profile to include nested person and external identity roles…
Ioannis Jul 7, 2026
158d25e
Create a ViewHelper for the person profile template
Ioannis Jul 7, 2026
baa5f56
upsert improvements and initial testing
Ioannis Jul 7, 2026
071b375
Initial Create. Improved full profile json objects. Improved data met…
Ioannis Jul 8, 2026
fbca9f4
Create new Person
Ioannis Jul 8, 2026
69d49d8
Upsert fix dynamic contains. Fix mveas reconciliation.
Ioannis Jul 8, 2026
7b136da
Refactor applyPersonProfileAssociations to a more dynamic version
Ioannis Jul 9, 2026
cd1f71b
Create external identity: dynamic calculation of contain.
Ioannis Jul 9, 2026
2baf1c6
refactor according to DRY
Ioannis Jul 9, 2026
6721777
Fix update/create responses. Improve code.
Ioannis Aug 7, 2026
584b23c
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