Download the PHP package pmg/assertion-grant without Composer

On this page you can find all versions of the php package pmg/assertion-grant. 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 assertion-grant

League OAuth2 Server Assertion Grant

This implements the assertion grants described in RFC 7521. The goal is to be flexible enough to support JWT (RFC 7523) or SAML (RFC 7522) assertions.

https://www.rfc-editor.org/rfc/rfc7521

This was inspired by some needs that PMG's https://www.pmg.com/alli platform had as well as some prior art from from google.

Client Authentication

RFCs 7523 and 7522 are opened ended about this:

If the client_id is present in the request (in the Authorization header of request body), then the normal client validation methods are used. If a client is confidential, client secret would be required.

If client_id is not present, then the the assertion issuer is treated as the oauth client ID.

Scopes

scope may be sent in as a normal request parameter, but RFC 7521 has this to say:

So somehow the assertion is made valid out of band. The assertion backend returns an Assertion implementation which has allowed scopes.

If a caller tries to request scopes outside of the assertion's allowed scopes, an error will be returned.

Assertion Issuers

Assertion issuers are treated as oauth client identifiers.

Assertion Subjects

Assertion subjects are treated as user identifiers in this library. No accomodations for client credentials as that would be better suited for the client_credentials grant with a client_assertion system.


All versions of assertion-grant with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
league/oauth2-server Version ^9.2
lcobucci/jwt Version ^5.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 pmg/assertion-grant contains the following files

Loading the files please wait ...