Download the PHP package notwes/laravel-uls without Composer

On this page you can find all versions of the php package notwes/laravel-uls. 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 laravel-uls

VATUSA ULS Handling for Laravel 5.x

[PHP from Packagist]() Latest Stable Version Total Downloads GitHub license GitHub issues

About

Provides a wrapper around the web-token libraries for use with VATUSA's Unified Login Scheme.

Installation

  1. Require the vatusa/laravel-uls package in your composer.json and update your dependencies:

  2. Generate the configuration file

Configuration

The defaults are set in config/uls.php. Copy this file to your own config directory to modify the values. You can publish the config using this command:

Lumen

On Laravel Lumen, load your configuration file manually in bootstrap/app.php:

Usage

Using laravel-uls is fairly easy.

  1. Get your JSON Web Key from your facility's Technical Configuration page. https://www.vatusa.net/mgt/facility (NOTE: You must hold a ATM, DATM or WM role for that facility to generate/see the generated JSON Web Key)
  2. Store the JWK, unedited, in the config above (or, recommended quoted with single quotes in the .env file as ULS_JWK='... JWK from VATUSA...')
  3. To generate the redirect url, use:

    To handle the developmental returns, specify a boolean argument of true

  4. To verify a token, assume $token is the full token received from VATUSA's ULS endpoint

    The laravel-uls library conducts header verifications to ensure that the accepted algorithms are received. Additionally, it conducts the following claims checks, including:

    • Ensures the audience is you (IE, the token isn't meant for another facility)
    • The token is not expired
    • The Issued at time is logical (ie, not in the future)

    Because of this, a number of exceptions may be thrown:

    • InvalidArgumentException
    • Jose\Component\Checker\InvalidClaimException
    • Jose\Component\Checker\InvalidHeaderException
  5. To get the information of the user associated with the token, use:

    This will return an array of the decoded JSON from ULS. Details of the array can be found in the VATUSA Technical Manual M1022 at https://www.vatusa.net.

License

Released under the GNU Public License 3.0, see LICENSE.


All versions of laravel-uls with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
web-token/jwt-core Version ^1.0
web-token/jwt-key-mgmt Version ^1.0
web-token/jwt-signature Version ^1.0
web-token/jwt-checker Version ^1.0
namshi/jose Version ^7.0
illuminate/support Version 5.3.x|5.4.x|5.5.x
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 notwes/laravel-uls contains the following files

Loading the files please wait ....