Skip to content

Commit

Permalink
Migrate project to new organisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 15, 2020
1 parent 4fe5565 commit ac91340
Show file tree
Hide file tree
Showing 33 changed files with 138 additions and 123 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

24 changes: 7 additions & 17 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# https://github.com/probot/settings

branches:
- name: master
protection:
enforce_admins: false
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: true
required_approving_review_count: 1
required_status_checks:
contexts:
- "Grumphp"
strict: false
restrictions: null

labels:
- name: bug
color: ee0701
Expand All @@ -36,15 +22,19 @@ labels:
repository:
allow_merge_commit: true
allow_rebase_merge: false
allow_squash_merge: false
allow_squash_merge: true
default_branch: master
description: "CAS Bundle, a standard Symfony bundle for authentication using CAS protocol."
homepage: https://cas-bundle.readthedocs.io/
topics: authentication,cas,psr,single-sign-on
homepage: https://ecphp-cas-bundle.readthedocs.io
topics: authentication,cas,single-sign-on
has_downloads: true
has_issues: true
has_pages: false
has_projects: false
has_wiki: false
name: cas-bundle
private: false

teams:
- name: core
permission: push
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2020, ECPHP
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
[![Latest Stable Version](https://img.shields.io/packagist/v/drupol/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/cas-bundle)
[![GitHub stars](https://img.shields.io/github/stars/drupol/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/cas-bundle)
[![Total Downloads](https://img.shields.io/packagist/dt/drupol/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/cas-bundle)
[![Build Status](https://img.shields.io/travis/drupol/cas-bundle/4.4.svg?style=flat-square)](https://travis-ci.org/drupol/cas-bundle)
[![Scrutinizer code quality](https://img.shields.io/scrutinizer/quality/g/drupol/cas-bundle/4.4.svg?style=flat-square)](https://scrutinizer-ci.com/g/drupol/cas-bundle/?branch=4.4)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/drupol/cas-bundle/4.4.svg?style=flat-square)](https://scrutinizer-ci.com/g/drupol/cas-bundle/?branch=4.4)
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/drupol/cas-bundle/4.4)](https://stryker-mutator.github.io)
[![Read the Docs](https://img.shields.io/readthedocs/cas-bundle?style=flat-square)](https://cas-bundle.readthedocs.io/)
[![License](https://img.shields.io/packagist/l/drupol/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/cas-bundle)
[![Say Thanks!](https://img.shields.io/badge/Say-thanks-brightgreen.svg?style=flat-square)](https://saythanks.io/to/drupol)
[![Donate!](https://img.shields.io/badge/Donate-Paypal-brightgreen.svg?style=flat-square)](https://paypal.me/drupol)

[![Latest Stable Version](https://img.shields.io/packagist/v/ecphp/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/cas-bundle)
[![GitHub stars](https://img.shields.io/github/stars/ecphp/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/cas-bundle)
[![Total Downloads](https://img.shields.io/packagist/dt/ecphp/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/cas-bundle)
[![Build Status](https://img.shields.io/travis/ecphp/cas-bundle/4.4.svg?style=flat-square)](https://travis-ci.org/ecphp/cas-bundle)
[![Scrutinizer code quality](https://img.shields.io/scrutinizer/quality/g/ecphp/cas-bundle/4.4.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/cas-bundle/?branch=4.4)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/ecphp/cas-bundle/4.4.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/cas-bundle/?branch=4.4)
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/ecphp/cas-bundle/4.4)](https://stryker-mutator.github.io)
[![Read the Docs](https://img.shields.io/readthedocs/ecphp-cas-bundle?style=flat-square)](https://ecphp-cas-bundle.readthedocs.io/)
[![License](https://img.shields.io/packagist/l/ecphp/cas-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/cas-bundle)

# CAS Bundle

A CAS bundle for Symfony 4 & 5.
Expand Down
12 changes: 6 additions & 6 deletions Resources/config/packages/cas_services.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
cas:
class: drupol\psrcas\Cas
class: EcPhp\CasLib\Cas
arguments:
$serverRequest: '@cas.psrrequest'
$properties: '@cas.configuration'
Expand All @@ -15,16 +15,16 @@ services:
cas.psr17_factory:
class: Nyholm\Psr7\Factory\Psr17Factory

drupol\psrcas\CasInterface: '@cas'
EcPhp\CasLib\CasInterface: '@cas'

cas.configuration:
class: drupol\CasBundle\Configuration\Symfony
class: EcPhp\CasBundle\Configuration\Symfony
arguments:
$properties: '%cas%'
$router: '@router'

cas.userprovider:
class: drupol\CasBundle\Security\Core\User\CasUserProvider
class: EcPhp\CasBundle\Security\Core\User\CasUserProvider

cas.psrhttpfactory:
class: Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory
Expand All @@ -41,7 +41,7 @@ services:
Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface: '@cas.httpfoundationfactory'

cas.guardauthenticator:
class: drupol\CasBundle\Security\CasGuardAuthenticator
class: EcPhp\CasBundle\Security\CasGuardAuthenticator
arguments:
$cas: '@cas'
$uriFactory: '@cas.psr17_factory'
Expand All @@ -56,7 +56,7 @@ services:
factory: [ '@cas.psrhttpfactory', createRequest ]
arguments: [ '@cas.request']

drupol\CasBundle\Controller\:
EcPhp\CasBundle\Controller\:
resource: '@CasBundle/Controller/'
autowire: true
autoconfigure: true
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "drupol/cas-bundle",
"name": "ecphp/cas-bundle",
"type": "symfony-bundle",
"description": "A bundle for Symfony 4 & 5, providing authentication against a Central Authentication Service (CAS) server.",
"keywords": [
Expand All @@ -9,12 +9,12 @@
"single sign-on",
"sso"
],
"license": "MIT",
"license": "BSD-3-Clause",
"require": {
"php": ">= 7.1.3",
"ext-json": "*",
"ext-simplexml": "*",
"drupol/psrcas": "dev-master",
"ecphp/cas-lib": "dev-master",
"nyholm/psr7": "^1.2",
"symfony/cache": "^4.4 || ^5",
"symfony/framework-bundle": "^4.4 || ^5",
Expand All @@ -24,7 +24,7 @@
"symfony/security-bundle": "^4.4 || ^5"
},
"require-dev": {
"drupol/php-conventions": "^1.6.11",
"drupol/php-conventions": "^1.6.12",
"friends-of-phpspec/phpspec-code-coverage": "^4.3.2",
"infection/infection": "^0.13.6",
"phpspec/phpspec": "^5.1.2"
Expand All @@ -38,12 +38,12 @@
},
"autoload": {
"psr-4": {
"drupol\\CasBundle\\": "src/"
"EcPhp\\CasBundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"spec\\drupol\\CasBundle\\": "./spec/drupol/CasBundle/"
"spec\\EcPhp\\CasBundle\\": "./spec/EcPhp/CasBundle/"
}
},
"minimum-stability": "dev",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The easiest way to install it is through Composer_

.. code-block:: bash
composer require drupol/cas-bundle
composer require ecphp/cas-bundle
Step 2
~~~~~~
Expand Down
12 changes: 6 additions & 6 deletions spec/drupol/CasBundle/Cas.php → spec/EcPhp/CasBundle/Cas.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle;
namespace spec\EcPhp\CasBundle;

use drupol\psrcas\Configuration\Properties as CasProperties;
use EcPhp\CasLib\Configuration\Properties as CasProperties;
use PhpSpec\ObjectBehavior;
use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\HttpClient\Response\MockResponse;
use tests\drupol\psrcas\Exception\TestClientException;
use tests\EcPhp\CasLib\Exception\TestClientException;

class Cas extends ObjectBehavior
{
Expand Down Expand Up @@ -104,7 +104,7 @@ public static function getHttpClientMock()
<cas:proxyGrantingTicket>pgtIou</cas:proxyGrantingTicket>
<cas:proxies>
<cas:proxy>http://app/proxyCallback.php</cas:proxy>
</cas:proxies>
</cas:proxies>
</cas:authenticationSuccess>
</cas:serviceResponse>
EOF;
Expand Down Expand Up @@ -178,7 +178,7 @@ public static function getHttpClientMock()
}

/**
* @return \drupol\psrcas\Configuration\Properties
* @return \EcPhp\CasLib\Configuration\Properties
*/
public static function getTestProperties(): CasProperties
{
Expand Down Expand Up @@ -235,7 +235,7 @@ public static function getTestProperties(): CasProperties
}

/**
* @return \drupol\psrcas\Configuration\Properties
* @return \EcPhp\CasLib\Configuration\Properties
*/
public static function getTestPropertiesWithPgtUrl(): CasProperties
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle\Configuration;
namespace spec\EcPhp\CasBundle\Configuration;

use drupol\CasBundle\Configuration\Symfony;
use EcPhp\CasBundle\Configuration\Symfony;
use PhpSpec\ObjectBehavior;
use spec\drupol\CasBundle\Cas;
use spec\EcPhp\CasBundle\Cas;
use Symfony\Component\Routing\RouterInterface;

class SymfonySpec extends ObjectBehavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle\Controller;
namespace spec\EcPhp\CasBundle\Controller;

use drupol\CasBundle\Controller\Homepage;
use EcPhp\CasBundle\Controller\Homepage;
use PhpSpec\ObjectBehavior;
use Symfony\Component\HttpFoundation\Response;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle\Controller;
namespace spec\EcPhp\CasBundle\Controller;

use drupol\CasBundle\Controller\Login;
use EcPhp\CasBundle\Controller\Login;
use PhpSpec\ObjectBehavior;

class LoginSpec extends ObjectBehavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle\Controller;
namespace spec\EcPhp\CasBundle\Controller;

use drupol\CasBundle\Controller\Logout;
use drupol\psrcas\Cas;
use EcPhp\CasBundle\Controller\Logout;
use EcPhp\CasLib\Cas;
use Nyholm\Psr7\Factory\Psr17Factory;
use Nyholm\Psr7\ServerRequest;
use PhpSpec\ObjectBehavior;
Expand All @@ -20,8 +20,8 @@ class LogoutSpec extends ObjectBehavior
public function it_can_be_invoked(TokenStorageInterface $tokenStorage)
{
$serverRequest = new ServerRequest('GET', 'http://app');
$properties = \spec\drupol\CasBundle\Cas::getTestProperties();
$client = new Psr18Client(\spec\drupol\CasBundle\Cas::getHttpClientMock());
$properties = \spec\EcPhp\CasBundle\Cas::getTestProperties();
$client = new Psr18Client(\spec\EcPhp\CasBundle\Cas::getHttpClientMock());
$cache = new ArrayAdapter();
$logger = new NullLogger();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle\Controller;
namespace spec\EcPhp\CasBundle\Controller;

use drupol\CasBundle\Controller\ProxyCallback;
use drupol\psrcas\Cas;
use EcPhp\CasBundle\Controller\ProxyCallback;
use EcPhp\CasLib\Cas;
use Nyholm\Psr7\Factory\Psr17Factory;
use Nyholm\Psr7\ServerRequest;
use PhpSpec\ObjectBehavior;
Expand All @@ -20,8 +20,8 @@ class ProxyCallbackSpec extends ObjectBehavior
public function it_can_be_invoked()
{
$serverRequest = new ServerRequest('GET', 'http://app');
$properties = \spec\drupol\CasBundle\Cas::getTestProperties();
$client = new Psr18Client(\spec\drupol\CasBundle\Cas::getHttpClientMock());
$properties = \spec\EcPhp\CasBundle\Cas::getTestProperties();
$client = new Psr18Client(\spec\EcPhp\CasBundle\Cas::getHttpClientMock());
$cache = new ArrayAdapter();
$logger = new NullLogger();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle\DependencyInjection;
namespace spec\EcPhp\CasBundle\DependencyInjection;

use drupol\CasBundle\DependencyInjection\CasExtension;
use EcPhp\CasBundle\DependencyInjection\CasExtension;
use PhpSpec\ObjectBehavior;
use Symfony\Component\DependencyInjection\ContainerBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace spec\drupol\CasBundle\DependencyInjection;
namespace spec\EcPhp\CasBundle\DependencyInjection;

use drupol\CasBundle\DependencyInjection\Configuration;
use EcPhp\CasBundle\DependencyInjection\Configuration;
use PhpSpec\ObjectBehavior;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down

0 comments on commit ac91340

Please sign in to comment.