-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate project to new organisation.
- Loading branch information
Showing
19 changed files
with
221 additions
and
209 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,51 +1,52 @@ | ||
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | ||
|
||
on: | ||
- pull_request | ||
- push | ||
- pull_request | ||
- push | ||
|
||
name: "Continuous Integration" | ||
|
||
jobs: | ||
run: | ||
name: "Grumphp" | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macOS-latest] | ||
php-versions: ['7.1', '7.2', '7.3', '7.4'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: xdebug | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | ||
|
||
- name: Run Grumphp | ||
run: vendor/bin/grumphp run | ||
env: | ||
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | ||
|
||
- name: Scrutinizer | ||
run: vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml | ||
run: | ||
name: "Grumphp" | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macOS-latest] | ||
php-versions: ['7.2', '7.3', '7.4'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: xdebug,mbstring | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | ||
|
||
- name: Run Grumphp | ||
run: vendor/bin/grumphp run | ||
env: | ||
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | ||
|
||
- name: Scrutinizer | ||
run: vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml | ||
continue-on-error: true |
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,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. |
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 |
---|---|---|
@@ -1,17 +1,14 @@ | ||
[![Latest Stable Version](https://img.shields.io/packagist/v/drupol/eulogin-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/eulogin-bundle) | ||
[![GitHub stars](https://img.shields.io/github/stars/drupol/eulogin-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/eulogin-bundle) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/drupol/eulogin-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/eulogin-bundle) | ||
[![Build Status](https://img.shields.io/travis/drupol/eulogin-bundle/master.svg?style=flat-square)](https://travis-ci.org/drupol/eulogin-bundle) | ||
[![Scrutinizer code quality](https://img.shields.io/scrutinizer/quality/g/drupol/eulogin-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/drupol/eulogin-bundle/?branch=master) | ||
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/drupol/eulogin-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/drupol/eulogin-bundle/?branch=master) | ||
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/drupol/eulogin-bundle/master)](https://stryker-mutator.github.io) | ||
[![Read the Docs](https://img.shields.io/readthedocs/eulogin-bundle?style=flat-square)](https://eulogin-bundle.readthedocs.io/) | ||
[![License](https://img.shields.io/packagist/l/drupol/eulogin-bundle.svg?style=flat-square)](https://packagist.org/packages/drupol/eulogin-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) | ||
|
||
# EU login bundle | ||
[![Latest Stable Version](https://img.shields.io/packagist/v/ecphp/eu-login-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/eu-login-bundle) | ||
[![GitHub stars](https://img.shields.io/github/stars/ecphp/eu-login-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/eu-login-bundle) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/ecphp/eu-login-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/eu-login-bundle) | ||
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ecphp/eu-login-bundle/Continuous%20Integration/4.4?style=flat-square)](https://github.com/ecphp/eu-login-bundle/actions) | ||
[![Scrutinizer code quality](https://img.shields.io/scrutinizer/quality/g/ecphp/eu-login-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/eu-login-bundle/?branch=master) | ||
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/ecphp/eu-login-bundle/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/ecphp/eu-login-bundle/?branch=master) | ||
[![Read the Docs](https://img.shields.io/readthedocs/ecphp-eu-login-bundle?style=flat-square)](https://ecphp-eu-login-bundle.readthedocs.io/) | ||
[![License](https://img.shields.io/packagist/l/ecphp/eu-login-bundle.svg?style=flat-square)](https://packagist.org/packages/ecphp/eu-login-bundle) | ||
|
||
A EU login bundle for Symfony 4 & 5. | ||
# EU Login bundle | ||
|
||
Read more on the dedicated documentation site: https://eulogin-bundle.readthedocs.io/ | ||
EU Login bundle for Symfony 4 & 5. | ||
|
||
Read more on the dedicated documentation site: https://ecphp-eu-login-bundle.readthedocs.io/ |
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 |
---|---|---|
@@ -1,48 +1,48 @@ | ||
cas: | ||
base_url: https://webgate.ec.europa.eu/cas | ||
protocol: | ||
login: | ||
path: /login | ||
allowed_parameters: | ||
- service | ||
- renew | ||
- gateway | ||
default_parameters: | ||
service: cas_bundle_homepage | ||
serviceValidate: | ||
allowed_parameters: | ||
- service | ||
- ticket | ||
- pgtUrl | ||
- renew | ||
- format | ||
- userDetails | ||
- ticketTypes | ||
path: /serviceValidate | ||
default_parameters: | ||
userDetails: "true" | ||
format: XML | ||
#pgtUrl: cas_bundle_proxy_callback | ||
logout: | ||
path: /logout | ||
allowed_parameters: | ||
- service | ||
default_parameters: | ||
service: cas_bundle_homepage | ||
proxy: | ||
path: /proxy | ||
allowed_parameters: | ||
- targetService | ||
- pgt | ||
proxyValidate: | ||
path: /proxyValidate | ||
allowed_parameters: | ||
- service | ||
- ticket | ||
- userDetails | ||
- pgtUrl | ||
- format | ||
default_parameters: | ||
userDetails: "true" | ||
format: XML | ||
#pgtUrl: cas_bundle_proxy_callback | ||
base_url: https://webgate.ec.europa.eu/cas | ||
protocol: | ||
login: | ||
path: /login | ||
allowed_parameters: | ||
- service | ||
- renew | ||
- gateway | ||
default_parameters: | ||
service: cas_bundle_homepage | ||
serviceValidate: | ||
allowed_parameters: | ||
- service | ||
- ticket | ||
- pgtUrl | ||
- renew | ||
- format | ||
- userDetails | ||
- ticketTypes | ||
path: /serviceValidate | ||
default_parameters: | ||
userDetails: "true" | ||
format: XML | ||
#pgtUrl: cas_bundle_proxy_callback | ||
logout: | ||
path: /logout | ||
allowed_parameters: | ||
- service | ||
default_parameters: | ||
service: cas_bundle_homepage | ||
proxy: | ||
path: /proxy | ||
allowed_parameters: | ||
- targetService | ||
- pgt | ||
proxyValidate: | ||
path: /proxyValidate | ||
allowed_parameters: | ||
- service | ||
- ticket | ||
- userDetails | ||
- pgtUrl | ||
- format | ||
default_parameters: | ||
userDetails: "true" | ||
format: XML | ||
#pgtUrl: cas_bundle_proxy_callback |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
services: | ||
eulogin.userprovider: | ||
class: drupol\EuloginBundle\Security\Core\User\EuloginUserProvider | ||
cas: | ||
class: drupol\ecas\Ecas | ||
arguments: | ||
$serverRequest: '@cas.psrrequest' | ||
$properties: '@cas.configuration' | ||
$client: '@psr18.http_client' | ||
$uriFactory: '@cas.psr17_factory' | ||
$responseFactory: '@cas.psr17_factory' | ||
$requestFactory: '@cas.psr17_factory' | ||
$streamFactory: '@cas.psr17_factory' | ||
$cache: '@cache.app' | ||
$logger: '@logger' | ||
eulogin.userprovider: | ||
class: EcPhp\EuLoginBundle\Security\Core\User\EuLoginUserProvider | ||
cas: | ||
class: EcPhp\Ecas\Ecas | ||
arguments: | ||
$serverRequest: '@cas.psrrequest' | ||
$properties: '@cas.configuration' | ||
$client: '@psr18.http_client' | ||
$uriFactory: '@cas.psr17_factory' | ||
$responseFactory: '@cas.psr17_factory' | ||
$requestFactory: '@cas.psr17_factory' | ||
$streamFactory: '@cas.psr17_factory' | ||
$cache: '@cache.app' | ||
$logger: '@logger' |
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
Oops, something went wrong.