Download the PHP package nl.idaas/openid-server without Composer

On this page you can find all versions of the php package nl.idaas/openid-server. 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 openid-server

Latest Stable Version Total Downloads

PHP OpenID Connect Server

This is an OpenID Connect Server written in PHP, built on top of thephpleague/oauth2-server.

It is used by idaas.nl: (not) yet another identity as a service platform.

This library supports everything that is supported by thephpleague/oauth2-server, plus the following specifications

This library was created by Arie Timmerman.

Installation

composer require nl.idaas/openid-server

Example

This example implements show how to implement an authorization server with support for an authorization grant, including OpenID Connect support.

~~~.php // Init our repositories $scopeRepository = new ScopeRepository(); // instance of ScopeRepositoryInterface $authCodeRepository = new AuthCodeRepository(); // instance of AuthCodeRepositoryInterface $refreshTokenRepository = new RefreshTokenRepository(); // instance of RefreshTokenRepositoryInterface

// Specific to this module $clientRepository = new ClientRepository(); // instance of \Idaas\OpenID\Repositories\ClientRepositoryInterface $accessTokenRepository = new AccessTokenRepository(); // instance of \Idaas\OpenID\Repositories\AccessTokenRepositoryInterface $claimRepository = new ClaimRepository(); // instance of ClaimRepositoryInterface

$privateKey = 'file://path/to/private.key'; //$privateKey = new CryptKey('file://path/to/private.key', 'passphrase'); // if private key has a pass phrase $encryptionKey = 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'; // generate using base64_encode(random_bytes(32))

// Setup the authorization server $server = new \League\OAuth2\Server\AuthorizationServer( $clientRepository, $accessTokenRepository, $scopeRepository, $privateKey, $encryptionKey );

// OpenID Connect Authorization Code Grant $grant = new \Idaas\OpenID\Grant\AuthCodeGrant( $authCodeRepository, $refreshTokenRepository, $claimRepository, new \Idaas\OpenID\Session, new DateInterval('PT10M'), // authorization codes will expire after 10 minutes new DateInterval('PT10M') // ID Token will expire after 10 minutes );

$grant->setRefreshTokenTTL(new \DateInterval('P1M')); // refresh tokens will expire after 1 month

// Enable the authentication code grant on the server $server->enableGrantType( $grant, new \DateInterval('PT1H') // access tokens will expire after 1 hour );



## Usages

* [Laravel OpenID Connect Server](https://github.com/arietimmerman/laravel-openid-connect-server)

All versions of openid-server with dependencies

PHP Build Version
Package Version
Requires league/oauth2-server Version ^8
lcobucci/jwt Version ^4.3|^5.0
nyholm/psr7 Version ^1.3
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 nl.idaas/openid-server contains the following files

Loading the files please wait ....