<commit_before># CasAuthBundle
Basic CAS (SSO) authenticator for Symfony 3

This bundle provides a -very- basic CAS (http://jasig.github.io/cas/4.1.x/index.html) authentication client for Symfony 3.

## Installation

Install the library via [Composer](https://getcomposer.org/) by
running the following command:

```bash
composer require prayno/casauth-bundle
```

Next, enable the bundle in your `app/AppKernel.php` file:

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new PRayno\CasAuthBundle\PRaynoCasAuthBundle(),
        // ...
    );
}
```

Add your settings to your config.yml :
```yaml
p_rayno_cas_auth:
    server_login_url: https://mycasserver/cas/
    server_validation_url: https://mycasserver/cas/serviceValidate
    server_logout_url: https://mycasserver/cas/logout
    xml_namespace: cas
```
Note : the last parameter is optional

Modify your security.xml with the following values (the provider in the following settings should not be used as it's just a very basic example) :
```yaml
security:
    providers:
        cas:
          id: prayno.cas_user_provider

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            anonymous: ~
            logout: ~
            guard:
                authenticators:<commit_msg>Update documentation<commit_after># CasAuthBundle
Basic CAS (SSO) authenticator for Symfony 3

This bundle provides a -very- basic CAS (http://jasig.github.io/cas/4.1.x/index.html) authentication client for Symfony 3.

## Installation

Install the library via [Composer](https://getcomposer.org/) by
running the following command:

```bash
composer require prayno/casauth-bundle
```

Next, enable the bundle in your `app/AppKernel.php` file:

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new PRayno\CasAuthBundle\PRaynoCasAuthBundle(),
        // ...
    );
}
```

Add your settings to your config.yml :
```yaml
p_rayno_cas_auth:
    server_login_url: https://mycasserver/cas/
    server_validation_url: https://mycasserver/cas/serviceValidate
    server_logout_url: https://mycasserver/cas/logout
    xml_namespace: cas
    options:[] see http://docs.guzzlephp.org/en/latest/request-options.html
```
Note : the xml_namespace and options parameters are optionals

Modify your security.xml with the following values (the provider in the following settings should not be used as it's just a very basic example) :
```yaml
security:
    providers:
        cas:
          id: prayno.cas_user_provider

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            anonymous: ~
            logout: ~
            guard:
                authenticators:
{'fraction_non_alphanumeric': 0.10747826086956522, 'fraction_numerical': 0.002782608695652174, 'mean_word_length': 2.8346666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2779973', 'n_tokens_mistral': 889, 'n_tokens_neox': 861, 'n_words': 241}