Skip to content

Commit e142da6

Browse files
committed
initial commit
0 parents  commit e142da6

18 files changed

+443
-0
lines changed

.buildpath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<buildpath>
3+
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
4+
<buildpathentry kind="src" path="src"/>
5+
<buildpathentry kind="src" path="vendor"/>
6+
</buildpath>

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
| Q | A
2+
| ------------- | ---
3+
| Branch? | `master` for new features / `1.0` for fixes
4+
| Bug fix? | yes/no
5+
| New feature? | yes/no
6+
| BC breaks? | yes/no
7+
| Deprecations? | yes/no
8+
| Tests pass? | yes/no
9+
| Fixed tickets | comma-separated list of tickets fixed by the PR, if any
10+
| License | BSD-2-Clause

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.composer/
2+
/composer.lock
3+
/composer.phar
4+
/docker-compose.yml
5+
/php-cs-fixer.phar
6+
/vendor/

.php_cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
$finder = Symfony\CS\Finder\DefaultFinder::create()
3+
->in(__DIR__.'/src')
4+
;
5+
6+
return Symfony\CS\Config\Config::create()
7+
->fixers(array('-empty_return', '-blankline_after_open_tag', 'ordered_use', '-phpdoc_no_empty_return'))
8+
->finder($finder)
9+
;

.project

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>composite-password-authentication-bundle</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.wst.validation.validationbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.dltk.core.scriptbuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.php.core.PHPNature</nature>
26+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
27+
</natures>
28+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
include_path=
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<faceted-project>
3+
<fixed facet="php.core.component"/>
4+
<fixed facet="php.component"/>
5+
<installed facet="php.core.component" version="1"/>
6+
<installed facet="php.component" version="5.5"/>
7+
</faceted-project>

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright (c) 2016 KUBO Atsuhiro <[email protected]>,
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
17+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23+
POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# PHPMentorsCompositePasswordAuthenticationBundle
2+
3+
A Symfony bundle for authentication using composite password
4+
5+
[![Total Downloads](https://poser.pugx.org/phpmentors/composite-password-authentication-bundle/downloads)](https://packagist.org/packages/phpmentors/composite-password-authentication-bundle)
6+
[![Latest Stable Version](https://poser.pugx.org/phpmentors/composite-password-authentication-bundle/v/stable)](https://packagist.org/packages/phpmentors/composite-password-authentication-bundle)
7+
[![Latest Unstable Version](https://poser.pugx.org/phpmentors/composite-password-authentication-bundle/v/unstable)](https://packagist.org/packages/phpmentors/composite-password-authentication-bundle)
8+
9+
## Features
10+
11+
* Composite password support for form authentication
12+
13+
## Installation
14+
15+
`PHPMentorsCompositePasswordAuthenticationBundle` can be installed using [Composer](http://getcomposer.org/).
16+
17+
First, add the dependency to `phpmentors/composite-password-authentication-bundle` into your `composer.json` file as the following:
18+
19+
```
20+
composer require phpmentors/composite-password-authentication-bundle "~1.0@dev"
21+
```
22+
23+
Second, add `PHPMentorsCompositePasswordAuthenticationBundle` into your bundles to register in `AppKernel::registerBundles()` as the following:
24+
25+
```php
26+
...
27+
class AppKernel extends Kernel
28+
{
29+
public function registerBundles()
30+
{
31+
$bundles = array(
32+
...
33+
new PHPMentors\CompositePasswordAuthenticationBundle\PHPMentorsCompositePasswordAuthenticationBundle(),
34+
);
35+
...
36+
```
37+
38+
## Configuration
39+
40+
`app/config/security.yml:`
41+
42+
```yaml
43+
security:
44+
# ...
45+
46+
firewalls:
47+
secured_area:
48+
form_login_composite_password:
49+
... # Same configuration as `form_login`
50+
```
51+
52+
## Support
53+
54+
If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on [Issues](https://github.com/phpmentors-jp/composite-password-authentication-bundle/issues).
55+
56+
## Copyright
57+
58+
Copyright (c) 2016 KUBO Atsuhiro, All rights reserved.
59+
60+
## License
61+
62+
[The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause)

composer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "phpmentors/composite-password-authentication-bundle",
3+
"type": "symfony-bundle",
4+
"description": "A Symfony bundle for authentication using composite password",
5+
"keywords": ["security", "authentication", "symfony"],
6+
"license": "BSD-2-Clause",
7+
"authors": [
8+
{
9+
"name": "KUBO Atsuhiro",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"require": {
14+
"php": ">=5.5.9",
15+
"symfony/config": "~2.8|~3.0",
16+
"symfony/dependency-injection": "~2.8|~3.0",
17+
"symfony/http-kernel": "~2.8|~3.0",
18+
"symfony/security-bundle": "~2.8|~3.0",
19+
"symfony/security-core": "~2.8|~3.0"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"PHPMentors\\CompositePasswordAuthenticationBundle\\": "src/"
24+
}
25+
},
26+
"extra": {
27+
"branch-alias": {
28+
"dev-master": "1.0.x-dev"
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)