Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfsimon committed Dec 8, 2011
1 parent 1a3b8af commit 3c8f4bb
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 28 deletions.
6 changes: 6 additions & 0 deletions BeSimpleSsoAuthBundle.php
Expand Up @@ -6,8 +6,14 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use BeSimple\SsoAuthBundle\DependencyInjection\Compiler\FactoryPass;

/**
* @author: Jean-François Simon <contact@jfsimon.fr>
*/
class BeSimpleSsoAuthBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
Expand Down
2 changes: 1 addition & 1 deletion Exception/ConfigNotFoundException.php
Expand Up @@ -9,6 +9,6 @@ class ConfigNotFoundException extends NotFoundException
{
public function __construct($id, $code = null, $previous = null)
{
parent::__construct('Config', $id, $code, $previous);
parent::__construct($id, 'Config', $code, $previous);
}
}
2 changes: 1 addition & 1 deletion Exception/ProtocolNotFoundException.php
Expand Up @@ -9,6 +9,6 @@ class ProtocolNotFoundException extends NotFoundException
{
public function __construct($id, $code = null, $previous = null)
{
parent::__construct('Protocol', $id, $code, $previous);
parent::__construct($id, 'Protocol', $code, $previous);
}
}
2 changes: 1 addition & 1 deletion Exception/ServerNotFoundException.php
Expand Up @@ -9,6 +9,6 @@ class ServerNotFoundException extends NotFoundException
{
public function __construct($id, $code = null, $previous = null)
{
parent::__construct('Server', $id, $code, $previous);
parent::__construct($id, 'Server', $code, $previous);
}
}
16 changes: 12 additions & 4 deletions README.md
Expand Up @@ -2,9 +2,17 @@ SSO authentication for Symfony2
===============================


*Tests OK!*
This bundle helps you to bring SSO authentication to yous Symfony2 project.


- Only CAS protocol is implemented for now.
- Documentation in Resources/doc
- License in Resources/meta/LICENSE
It works in two ways:

- **trusted**: authentication is done against a known server (like with CAS)
- **open**: authentication is done with server of user's choice (like with OpenId)


Only CAS protocol is implemented for now, many other are planned.


- [Read documentation](https://github.com/BeSimple/BeSimpleSsoAuthBundle/blob/master/Resources/doc/index.md)
- [See the license](https://github.com/BeSimple/BeSimpleSsoAuthBundle/blob/master/Resources/meta/LICENSE)
29 changes: 14 additions & 15 deletions Resources/doc/index.md
@@ -1,25 +1,24 @@
BeSimpleSsoAuthBundle documentation
===================================
BeSimpleSsoAuthBundle documentation summary
===========================================


This bundle helps you to bring SSO authentication to yous Symfony2 project.
The basics
----------

It works in two ways:

- **trusted**: authentication is done against a known server (like with CAS)
- **open**: authentication is done with server of user's choice (like with OpenId)


Documentation summary
---------------------
- [Installation & setup](install.md)
- [Configure trusted SSO](trusted.md)
- Configure open SSO (*to come*)


The basics:
Advanced use
------------

- [Installation & setup](install.md)
- [Configure trusted SSO](trusted.md) *CAS only for now*
- Customize SSO server (*to come*)
- Add a protocol (*to come*)
- Manage users (*to come*)


Reminder:
Some notes
----------

- [Some SSO protocols](protocols.md)
15 changes: 9 additions & 6 deletions Resources/doc/trusted.md
Expand Up @@ -33,24 +33,27 @@ Other optional configuration entries are:
**An example in YAML format:**

# security.yml

security:
# ...
firewalls:
my_firewall:
pattern: ^/secured-area/.*$
trusted_sso:
manager: my_manager
login_action: BeSimpleSsoAuthBundle:TrustedSso:login
logout_action: BeSimpleSsoAuthBundle:TrustedSso:logout
# ...
#...


Server configuration
--------------------
Manager configuration
---------------------


Now you must configure your `my_manager` manager.


An example:
**An example in YAML format:**

# config.yml

be_simple_sso_auth:
my_manager:
Expand Down

0 comments on commit 3c8f4bb

Please sign in to comment.