Download the PHP package serato/sso-auth-request without Composer

On this page you can find all versions of the php package serato/sso-auth-request. 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 sso-auth-request

SSO Auth Requests

A PHP library for handling web application authorisation requests to the Serato SSO service.

SSO authorisation request lifecycle

The SSO authorisation request lifecycle for a web application is as follows:

  1. The web application creates a new authorisation request using the \Serato\SsoRequest\AuthRequest class:
    • The web application provides a return URL that the SSO service will redirect to after the sign on process.
    • A storage mechanism is provided to persist the authorisation request details during redirection to the SSO website.
  2. The new authorisation request returns an ID.
  3. The browser is redirected to the SSO website providing the authorisation request ID in the state URI parameter.
  4. The browser is returned to the web application from the SSO service, with the SSO service providing back the state parameter as well as a code parameter.
  5. The web application creates an \Serato\SsoRequest\AuthRequest instance by providing the authorisation id passed via the state URI parameter.
  6. The web application receives access and refresh tokens from the SSO service by using the \Serato\SsoRequest\AuthRequest instance and the value provided in the code URI parameter.

Storing authorisation requests during SSO redirection

A Serato\SsoRequest\AuthRequestStorageInterface storage interface is defined for storing authorisation requests during SSO redirection.

A AuthRequestStorageInterface implementation stores the application ID, request ID and redirect URL values used during the authorisation lifecyle, as well as timestamps and a means of indication that the authorisation process is complete.

The Serato\SsoRequest\AuthRequestDynamoDbStorage class provides an implementation of Serato\SsoRequest\AuthRequestStorageInterface using a DynamoDB table as the storage mechanism.

Using the \Serato\SsoRequest\AuthRequest class in the request lifecycle

Note: All examples use Serato\SsoRequest\AuthRequestDynamoDbStorage as the storage mechanism.

Create a new authorisation request (Step 1. above)

Create a AuthRequest instance after returning to the web applicaton after sign on (Step 5. above), and use it to fetch refresh and access tokens from the SSO service (Step 6. above)


All versions of sso-auth-request with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
aws/aws-sdk-php Version ^3.0
ramsey/uuid Version ^3.0.0
serato/sws-php-sdk Version ^4.0.0
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 serato/sso-auth-request contains the following files

Loading the files please wait ....