<commit_before># zf-saml

SAML authentication module for ZF2.

[![Build Status](https://travis-ci.org/MehrAlsNix/zf-saml.svg)](https://travis-ci.org/MehrAlsNix/zf-saml)

This module uses `onelogin/php-saml` internally and wrap the function in services.

## Installation

tbd

## Configuration

tbd

## Services

### MehrAlsNix\ZF\SAML\Service\SAML2Auth

Provides an instance of `OneLogin_Saml2_Auth`

### MehrAlsNix\ZF\SAML\Service\SAML2AuthnRequest

Provides an instance of `OneLogin_Saml2_AuthnRequest`

### MehrAlsNix\ZF\SAML\Service\SAML2Metadata

Provides an instance of `OneLogin_Saml2_Metadata`

### MehrAlsNix\ZF\SAML\Service\SAML2Response

Provides an instance of `OneLogin_Saml2_Response`

### MehrAlsNix\ZF\SAML\Service\SAML2Settings

Provides an instance of `OneLogin_Saml2_Settings`

## API protection<commit_msg>Added install description<commit_after># zf-saml

SAML authentication module for ZF2.

[![Build Status](https://travis-ci.org/MehrAlsNix/zf-saml.svg)](https://travis-ci.org/MehrAlsNix/zf-saml)

This module uses `onelogin/php-saml` internally and wrap the function in services.

## Installation

Just require `mehr-asl-nix/zf-saml` in your `composer.json`.

Enable it in application.config.php
```
    'modules' => array (
        // ---8<---
        'ZF\ApiProblem',
        'ZF\ContentNegotiation',
        'MehrAlsNix\ZF\SAML',
        // --->8---
    ),
```

## Configuration

tbd

## Services

### MehrAlsNix\ZF\SAML\Service\SAML2Auth

Provides an instance of `OneLogin_Saml2_Auth`

### MehrAlsNix\ZF\SAML\Service\SAML2AuthnRequest

Provides an instance of `OneLogin_Saml2_AuthnRequest`

### MehrAlsNix\ZF\SAML\Service\SAML2Metadata

Provides an instance of `OneLogin_Saml2_Metadata`

### MehrAlsNix\ZF\SAML\Service\SAML2Response

Provides an instance of `OneLogin_Saml2_Response`

### MehrAlsNix\ZF\SAML\Service\SAML2Settings

Provides an instance of `OneLogin_Saml2_Settings`

## API protection
{'fraction_non_alphanumeric': 0.122533748701973, 'fraction_numerical': 0.012461059190031152, 'mean_word_length': 4.49002849002849, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5052278', 'n_tokens_mistral': 784, 'n_tokens_neox': 757, 'n_words': 131}