Download the PHP package admin9/laravel-oidc-server without Composer

On this page you can find all versions of the php package admin9/laravel-oidc-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 laravel-oidc-server

Laravel OIDC Server

Latest Version on Packagist Total Downloads License

中文文档

OpenID Connect Server for Laravel Passport — adds OIDC Discovery, JWKS, UserInfo, Token Introspection, Token Revocation, and RP-Initiated Logout to any Laravel + Passport application.

Requirements

Quick Start

Prerequisite: Laravel Passport must be installed and configured before using this package.

1. Install the package

2. Implement the interface on your User model

3. Generate Passport keys

This creates the RSA key pair (storage/oauth-private.key and storage/oauth-public.key) needed for signing tokens.

4. Create an OAuth client

Create a client application that will use your OIDC server:

You'll receive a Client ID and Client Secret — save these for configuring your client application.

Grant Type Guide:

5. (Optional) Publish and customize the config

Edit config/oidc-server.php to customize scopes, claims, token TTLs, and more.


That's it! Your OIDC server is ready. Test it by visiting:

Endpoints

Endpoint Method Description
/.well-known/openid-configuration GET OIDC Discovery
/.well-known/jwks.json GET JSON Web Key Set
/oauth/authorize GET Authorization (Passport)
/oauth/token POST Token (Passport)
/oauth/userinfo GET/POST UserInfo
/oauth/introspect POST Token Introspection (RFC 7662)
/oauth/revoke POST Token Revocation (RFC 7009)
/oauth/logout GET RP-Initiated Logout

Configuration

After publishing the config file, you can customize various aspects in config/oidc-server.php:

User Model

By default, the package uses config('auth.providers.users.model') to look up users when generating ID tokens. Override if needed:

Passport Route Control

The package calls Passport::ignoreRoutes() by default to prevent route conflicts. Disable this if you need Passport's default routes alongside OIDC:

Default Claims Map

The HasOidcClaims trait resolves standard claims via a configurable map. Override to match your User model's schema:

For custom claims (e.g., nickname, picture), use claims_resolver or override resolveOidcClaim() in your User model.

Other Options

See the Configuration Reference for all available options.

Documentation

License

MIT


All versions of laravel-oidc-server with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
defuse/php-encryption Version ^2.4
laravel/passport Version ^12.0|^13.0
lcobucci/jwt Version ^5.0
spatie/laravel-package-tools Version ^1.16
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 admin9/laravel-oidc-server contains the following files

Loading the files please wait ...