PHPackages                             notakey/simplesamlphp-module-autoauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. notakey/simplesamlphp-module-autoauth

ActiveSimplesamlphp-module[Authentication &amp; Authorization](/categories/authentication)

notakey/simplesamlphp-module-autoauth
=====================================

A SimpleSAMLphp module for automatic auth source selection.

1.1.3(6y ago)0145MITPHPPHP &gt;=5.5.9CI failing

Since Apr 30Pushed 6y agoCompare

[ Source](https://github.com/notakey/simplesamlphp-module-autoauth)[ Packagist](https://packagist.org/packages/notakey/simplesamlphp-module-autoauth)[ RSS](/packages/notakey-simplesamlphp-module-autoauth/feed)WikiDiscussions dev-master Synced 3w ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

AutoAuth module
===============

[](#autoauth-module)

Allows to automatically select authentication source by specifying source IP address range or matching user agents. Attempt is to improve AD FS intranet / extranet definition and avoid showing HDR every time user authenticates, as errors in HRD selection can be hard to overcome for users.

`autoauth:AutoAuth`: Authenticate the user against a list of authentication sources.

`autoauth:AutoAuth`
-------------------

[](#autoauthautoauth)

To create a autoauth authentication source, open `config/authsources.php` in a text editor, and add an entry for the authentication source:

```
'example-auto' => array(
    'autoauth:AutoAuth',

    /*
     * The available authentication sources.
     * They must be defined in this authsources.php file.
     */
    'sources' => array(
        'example-saml' => array(
            "preauth-source" => "ad-ldap",
            "preauth-duration" =>  "P1Y"
        ),
        'example-admin' => array(
            'subnets' => array('127.0.0.0/24', '10.0.1.0/24'),
        ),
        'example-boo' => array(
            'subnets' => array('192.168.0.0/16'),
        ),
    ),
    'default' => 'example-saml'
),

'example-saml' => array(
    'saml:SP',
    'entityId' => 'my-entity-id',
    'idp' => 'my-idp',
),

'example-admin' => array(
    'core:AdminPassword',
),

'example-boo' => array(
    'core:AdminPassword',
),

```

The optional config of preauth-source in any auth source option definition enables additional user verification once per token duration. The attributes for user ID must match in both auth sources and must be configured with preauth-uid, defaults to uid. Option preauth-duration sets validity interval for issued token.

Token currently is a cookie derived from private key on server side and validated on any new authentication flow. If server key changes, all client devices will be re-authenticated.

Notakey Authentication appliance
--------------------------------

[](#notakey-authentication-appliance)

If running in NAA environment configure using cli:

```
# Configure module authentication sources
# autoselect can be any name for this virtual auth source
ntk cfg set :sso.auth.autoselect '{
        "module": "autoauth:AutoAuth",
        "sources": {
            "adfs-wia": {
                "subnets": ["172.17.0.0/24", "192.168.2.0/24"]
            },
            "notakey": {
                "subnets": ["20.0.0.0/24", "202.168.2.0/24"],
                -- another source defined in :sso.auth
                "preauth-source": "ad-ldap",
                -- store session token for one year
                "preauth-duration": "P1Y",
                "preauth-user-attr": "uid",
                "preauth-set-attr": "notakey:preauth-uid"

            }
        },
        "default": "notakey",
        "ipsource": "HTTP_X_REAL_IP"
    }' --json-input

# Enable module
ntk cfg set :sso.modules '[..., "autoauth"]' --json-input

# Switch to this source for your IdP
ntk cfg set :sso.\"saml-idp\".\"\".auth "autoselect"

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~62 days

Recently: every ~78 days

Total

7

Last Release

2238d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28524181?v=4)[Ingemārs](/maintainers/iasmanis)[@iasmanis](https://github.com/iasmanis)

---

Top Contributors

[![iasmanis](https://avatars.githubusercontent.com/u/28524181?v=4)](https://github.com/iasmanis "iasmanis (17 commits)")

---

Tags

adfs home realm discoverywindows integrated authentication

### Embed Badge

![Health badge](/badges/notakey-simplesamlphp-module-autoauth/health.svg)

```
[![Health](https://phpackages.com/badges/notakey-simplesamlphp-module-autoauth/health.svg)](https://phpackages.com/packages/notakey-simplesamlphp-module-autoauth)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.8M211](/packages/simplesamlphp-simplesamlphp)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5017.7k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[drupalauth/simplesamlphp-module-drupalauth

A SimpleSAMLphp module adding support for Drupal as the authentication source.

25317.5k1](/packages/drupalauth-simplesamlphp-module-drupalauth)[cirrusidentity/simplesamlphp-module-authoauth2

SSP Module for Oauth2 authentication sources

33106.2k](/packages/cirrusidentity-simplesamlphp-module-authoauth2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
