Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Initial implementation of EnvSource (CFM-116), Traffic Plugins (CFM-3…
…03) and Upgrade Command (CFM-155)
Benn Oshrin
committed
Feb 12, 2025
1 parent
a4c6e63
commit 4ab5779
Showing
40 changed files
with
3,763 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# EnvSource plugin for CakePHP | ||
|
||
## Installation | ||
|
||
You can install this plugin into your CakePHP application using [composer](https://getcomposer.org). | ||
|
||
The recommended way to install composer packages is: | ||
|
||
``` | ||
composer require your-name-here/env-source | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "your-name-here/env-source", | ||
"description": "EnvSource plugin for CakePHP", | ||
"type": "cakephp-plugin", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=7.2", | ||
"cakephp/cakephp": "4.5.*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.5 || ^9.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"EnvSource\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"EnvSource\\Test\\": "tests/", | ||
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
colors="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="tests/bootstrap.php" | ||
> | ||
<php> | ||
<ini name="memory_limit" value="-1"/> | ||
<ini name="apc.enable_cli" value="1"/> | ||
</php> | ||
|
||
<!-- Add any additional test suites you want to run here --> | ||
<testsuites> | ||
<testsuite name="EnvSource"> | ||
<directory>tests/TestCase/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<!-- Setup fixture extension --> | ||
<extensions> | ||
<extension class="Cake\TestSuite\Fixture\PHPUnitExtension" /> | ||
</extensions> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
173 changes: 173 additions & 0 deletions
173
app/plugins/EnvSource/resources/locales/en_US/env_source.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
# COmanage Registry Localizations (env_source domain) | ||
# | ||
# 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 | ||
# @since COmanage Registry v5.1.0 | ||
# @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | ||
|
||
msgid "controller.EnvSourceCollectors" | ||
msgstr "{0,plural,=1{Env Source Collector} other{Env Source Collectors}}" | ||
|
||
msgid "controller.EnvSources" | ||
msgstr "{0,plural,=1{Env Source} other{Env Sources}}" | ||
|
||
msgid "controller.PetitionEnvIdentities" | ||
msgstr "{0,plural,=1{Petition Env Identity} other{Petition Env Identities}}" | ||
|
||
msgid "enumeration.EnvSourceSpModeEnum.O" | ||
msgstr "Other" | ||
|
||
msgid "enumeration.EnvSourceSpModeEnum.SH" | ||
msgstr "Shibboleth" | ||
|
||
msgid "enumeration.EnvSourceSpModeEnum.SS" | ||
msgstr "SimpleSamlPhp" | ||
|
||
msgid "error.lookaside_file" | ||
msgstr "Lookaside File {0} could not be parsed" | ||
|
||
msgid "error.source_key" | ||
msgstr "Source Key (env_identifier_sourcekey) not found in attributes" | ||
|
||
msgid "error.source_key.duplicate" | ||
msgstr "Source Key {0} is already attached to External Identity {1}" | ||
|
||
msgid "field.EnvSources.address_type_id" | ||
msgstr "Address Type" | ||
|
||
msgid "field.EnvSources.default_affiliation_type_id" | ||
msgstr "Default Affiliation Type" | ||
|
||
msgid "field.EnvSources.email_address_type_id" | ||
msgstr "Email Address Type" | ||
|
||
msgid "field.EnvSources.env_address_street" | ||
msgstr "Address - Street" | ||
|
||
msgid "field.EnvSources.env_address_locality" | ||
msgstr "Address - Locality" | ||
|
||
msgid "field.EnvSources.env_address_state" | ||
msgstr "Address - State" | ||
|
||
msgid "field.EnvSources.env_address_postalcode" | ||
msgstr "Address - Postal Code" | ||
|
||
msgid "field.EnvSources.env_address_country" | ||
msgstr "Address - Country" | ||
|
||
msgid "field.EnvSources.env_affiliation" | ||
msgstr "Affiliation" | ||
|
||
msgid "field.EnvSources.env_department" | ||
msgstr "Department" | ||
|
||
msgid "field.EnvSources.env_identifier_eppn" | ||
msgstr "Identifier (ePPN)" | ||
|
||
msgid "field.EnvSources.env_identifier_eptid" | ||
msgstr "Identifier (ePTID)" | ||
|
||
msgid "field.EnvSources.env_identifier_epuid" | ||
msgstr "Identifier (ePUID)" | ||
|
||
msgid "field.EnvSources.env_identifier_network" | ||
msgstr "Identifier (Network)" | ||
|
||
msgid "field.EnvSources.env_identifier_oidcsub" | ||
msgstr "Identifier (OIDC sub)" | ||
|
||
msgid "field.EnvSources.env_identifier_samlpairwiseid" | ||
msgstr "Identifier (SAML pairwise-id)" | ||
|
||
msgid "field.EnvSources.env_identifier_samlsubjectid" | ||
msgstr "Identifier (SAML subject-id)" | ||
|
||
msgid "field.EnvSources.env_identifier_sourcekey" | ||
msgstr "Identifier (Source Key)" | ||
|
||
msgid "field.EnvSources.env_identifier_sourcekey.desc" | ||
msgstr "This must be set to an environment variable holding a unique identifier for each authenticated user" | ||
|
||
msgid "field.EnvSources.env_mail" | ||
msgstr "Email" | ||
|
||
msgid "field.EnvSources.env_name_honorific" | ||
msgstr "Name - Honorific" | ||
|
||
msgid "field.EnvSources.env_name_given" | ||
msgstr "Name - Given" | ||
|
||
msgid "field.EnvSources.env_name_middle" | ||
msgstr "Name - Middle" | ||
|
||
msgid "field.EnvSources.env_name_family" | ||
msgstr "Name - Family" | ||
|
||
msgid "field.EnvSources.env_name_suffix" | ||
msgstr "Name - Suffix" | ||
|
||
msgid "field.EnvSources.env_organization" | ||
msgstr "Organization" | ||
|
||
msgid "field.EnvSources.env_telephone_number" | ||
msgstr "Telephone Number" | ||
|
||
msgid "field.EnvSources.env_title" | ||
msgstr "Title" | ||
|
||
msgid "field.EnvSources.lookaside_file" | ||
msgstr "Lookaside File" | ||
|
||
msgid "field.EnvSources.lookaside_file.desc" | ||
msgstr "Path to lookaside file, intended for testing only" | ||
|
||
msgid "field.EnvSources.redirect_on_duplicate" | ||
msgstr "Redirect on Duplicate" | ||
|
||
msgid "field.EnvSources.sp_mode" | ||
msgstr "Web Server Service Provider" | ||
|
||
msgid "field.EnvSources.sync_on_login" | ||
msgstr "Sync on Login" | ||
|
||
msgid "field.EnvSources.sync_on_login.desc" | ||
msgstr "Refresh Env Source attributes when the Identifier associated with the External Identity is used to authenticate to the platform" | ||
|
||
msgid "field.EnvSources.name_type_id" | ||
msgstr "Name Type" | ||
|
||
msgid "field.EnvSources.telephone_number_type_id" | ||
msgstr "Telephone Number Type" | ||
|
||
msgid "information.header.map" | ||
msgstr "Environment Variable Map" | ||
|
||
msgid "information.review" | ||
msgstr "This is the information received from your IdP. Please review, and if you identify any discrepencies please contact your Petitioner before proceeding." | ||
|
||
msgid "result.env.saved" | ||
msgstr "Env Attributes recorded" | ||
|
||
msgid "result.env.saved.login" | ||
msgstr "Env Attributes updated at login" | ||
|
||
msgid "result.pipeline.status" | ||
msgstr "Pipeline completed with status {0}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace EnvSource\Controller; | ||
|
||
use App\Controller\AppController as BaseController; | ||
|
||
class AppController extends BaseController | ||
{ | ||
} |
Oops, something went wrong.