Download the PHP package cilogon/oauth2-cilogon without Composer
On this page you can find all versions of the php package cilogon/oauth2-cilogon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cilogon/oauth2-cilogon
More information about cilogon/oauth2-cilogon
Files in cilogon/oauth2-cilogon
Package oauth2-cilogon
Short Description CILogon OAuth 2.0 Client Provider for The PHP League OAuth2-Client
License NCSA
Informations about the package oauth2-cilogon
CILogon Provider for the OAuth 2.0 Client
This package provides CILogon OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
CILogon facilitates federated authentication for CyberInfrastructure (CI). For more information, see http://www.cilogon.org/oidc . Note that CILogon is used primarily by NSF-funded projects. All client registrations are vetted and approved manually.
This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.
Requirements
The following versions of PHP are supported.
- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
- PHP 8.1
Installation
To install, use composer:
Usage
Authorization Code Flow
Managing Scopes
When creating your CILogon authorization URL, you can specify the state and scopes your application may authorize.
If neither are defined, the provider will utilize internal defaults.
At the time of authoring this documentation, the following scopes are available.
- openid - Required/Default - gives the CILogon-specific identifier of the user
- email - gives the user's email address
- profile - gives the user's name (given, family, and display, if available)
- org.cilogon.userinfo - gives Identity Provider SAML attributes, e.g., ePPN (eduPersonPrincipalName), ePTID (eduPersonTargetedID), eduPersonScopedAffiliation, ou (organizationalUnitName)
Two additional CILogon-specific options are available.
- selected_idp - the SAML entityId of the user's pre-selected Identity Provider. If given, CILogon UI will present the user with this IdP and ask for consent for release of information. See https://cilogon.org/include/idplist.xml for the list of Identity Providers supported by CILogon (those desginated as \<Whitelisted>).
- skin - a pre-defined custom CILogon interface skin to change the look of the CILogon site. Contact [email protected] to reqeust a custom skin.
Example:
Using the "test" or "dev" Server
Typically, you would use the production server https://cilogon.org . However, you can specify a 'server' parameter when creating the provider to use the "test" server https://test.cilogon.org or "dev" server https://dev.cilogon.org .
Refreshing a Token
License
The University of Illinois/NCSA Open Source License (NCSA). Please see License File for more information.