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
a42ccd6
CoreApi.PersonProfiles API v2.Configuration view and REST API v2 rout…
Ioannis Jul 5, 2026
15e36a4
fix configuration page display field
Ioannis Jul 6, 2026
f11cea4
Added crud person actions. Added template for index and view. Added o…
Ioannis Jul 6, 2026
8bbb2c3
Initial implementation of index. Start honoring plugin configurations…
Ioannis Jul 6, 2026
bc8ca8c
Added index native pagination.Added query parameter parsing and valid…
Ioannis Jul 7, 2026
a8e305c
Fix index slim response. Fixed Delete response.
Ioannis Jul 7, 2026
2463897
Fix index slim response. Fixed Delete response.
Ioannis Jul 7, 2026
99d40ef
Fix full profile to include nested person and external identity roles…
Ioannis Jul 7, 2026
b312a0f
Create a ViewHelper for the person profile template
Ioannis Jul 7, 2026
b058970
upsert improvements and initial testing
Ioannis Jul 7, 2026
1cf6672
Initial Create. Improved full profile json objects. Improved data met…
Ioannis Jul 8, 2026
ed0a6fe
Create new Person
Ioannis Jul 8, 2026
e6004d1
Upsert fix dynamic contains. Fix mveas reconciliation.
Ioannis Jul 8, 2026
80ea451
Refactor applyPersonProfileAssociations to a more dynamic version
Ioannis Jul 9, 2026
bab5638
Create external identity: dynamic calculation of contain.
Ioannis Jul 9, 2026
25e0a17
refactor according to DRY
Ioannis Jul 9, 2026
cf91fa5
Fix update/create responses. Improve code.
Ioannis Aug 7, 2026
53ecc9d
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