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.
Download pmg/assertion-grant
More information about pmg/assertion-grant
Files in pmg/assertion-grant
Package assertion-grant
Short Description An implemenation of the assertion authorization grant flows from RFC7521
License MIT
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.