Download the PHP package silinternational/simplesamlphp-module-silauth without Composer

On this page you can find all versions of the php package silinternational/simplesamlphp-module-silauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package simplesamlphp-module-silauth

Archived

This repository is no longer maintained. It has been included directly in https://github.com/silinternational/ssp-base.

--

simplesamlphp-module-silauth

SimpleSAMLphp auth module implementing custom business logic

GitHub license

Database Migrations

To create another database migration file, run the following (replacing YourMigrationName with whatever you want the migration to be named, using CamelCase):

make migration NAME=YourMigrationName

Rate Limiting

SilAuth will rate limit failed logins by username and by every untrusted IP address from a login attempt.

tl;dr ("the short version")

If there have been more than 10 failed logins for a given username (or IP address) within the past hour, a captcha will be included in the webpage. The user may or may not have to directly interact with the captcha, though.

If there have been more than 50 failed logins for that username (or IP address) within the past hour, logins for that username (or IP address) will be blocked for up to an hour.

Details

For each login attempt, if it has too many failed logins within the last hour (aka. recent failed logins) for the given username OR for any single untrusted IP address associated with the current request, it will do one of the following:

See features/login.feature for descriptions of how various situations are handled. That file not only contains human-readable scenarios, but those are also actual tests that are run to ensure those descriptions are correct.

Example 1

Example 2

Excluding trusted IP addresses from IP address based rate limiting

Since this application enforces rate limits based on the number of recent failed login attempts by both username and IP address, and since it looks at both the REMOTE_ADDR and the X-Forwarded-For header for IP addresses, you will want to list any IP addresses that should NOT be rate limited (such as your load balancer) in the TRUSTED_IP_ADDRESSES environment variable (see local.env.dist).

Status Check

To check the status of the website, you can access this URL:
https://(your domain name)/module.php/silauth/status.php

Debugging

To debug the project in your IDE (such as NetBeans), do the following:

  1. Edit your local.env file, insert your IP address as the value for XDEBUG_REMOTE_HOST.
  2. Run make start enabledebug.
  3. Set your IDE to use debugger port 9000 and a Session ID of netbeans-xdebug.
  4. Click the "Debug Project" button in your IDE.

Manual Testing

  1. Add an entry to your /etc/hosts file for 127.0.0.1 silauth.local
  2. Run make
  3. Go to http://silauth.local/module.php/core/authenticate.php?as=silauth in your browser.

Debugging

Xdebug can be enabled by doing the following:

  1. Define REMOTE_DEBUG_IP in local.env. This should be the IP address of your development machine, i.e. the one that is running your IDE. If you're using Linux as your Docker host, you can use 172.17.0.1 here.
  2. Map run-debug.sh into the container you wish to debug. For example:

  3. Enable debugging in your IDE. See the next section for PhpStorm setup.

Configuring PhpStorm for remote debugging

In PhpStorm go to: Preferences > PHP > Debug > DBGp Proxy and set the following settings:

Set path mappings in: Preferences > PHP > Servers

Then start listening by clicking the "listen" button on the PhpStorm toolbar.


All versions of simplesamlphp-module-silauth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-json Version *
codemix/yii2-streamlog Version ^1.3
ramsey/uuid Version ^3.5
rlanvin/php-ip Version ^1.0
silinternational/idp-id-broker-php-client Version ^4.0.0
silinternational/php-env Version ^2.0 || ^3.0
silinternational/psr3-adapters Version ^2.3 || ^3.0
silinternational/yii2-json-log-targets Version ^2.0
simplesamlphp/simplesamlphp Version ~1.18.6 || ~1.19.0
yiisoft/yii2 Version ~2.0.12
yiisoft/yii2-gii Version ^2.0
fillup/fake-bower-assets Version ^2.0
google/recaptcha Version ^1.1
psr/log Version ^1.0
monolog/monolog Version ^1.22
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package silinternational/simplesamlphp-module-silauth contains the following files

Loading the files please wait ....