awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
thephpleague avatar

thephpleague/oauth2-server

0
View on GitHub↗
6,670 stars·1,136 forks·PHP·MIT·15 viewsoauth2.thephpleague.com↗

Oauth2 Server

This project is a PHP library for implementing a spec-compliant OAuth 2.0 authorization server. It serves as an authentication framework for managing user identities and client authorizations, providing the necessary components to issue and validate access and refresh tokens.

The server supports a wide range of standardized authorization flows, including authorization code exchange, device grants, implicit flows, and PKCE enforcement. It handles complex token lifecycles through refresh token rotation, scope management, and the use of asymmetric keys for signing digital tokens.

The system provides comprehensive API access control and resource protection by verifying bearer tokens and authorization headers. It employs a repository-pattern for data persistence and provides interfaces to decouple authorization entities from specific database backends.

Integration is achieved through standardized request and response interfaces that connect the authorization server logic to web frameworks.

Features

  • OAuth 2.0 Authorization Servers - Implements a full OAuth 2.0 authorization server for managing client registrations and issuing access tokens.
  • Authorization Store Backends - Provides the necessary data interfaces and backends for persisting clients, users, and tokens.
  • OAuth2-Secured REST APIs - Implements a security layer to protect REST API endpoints using OAuth2 token authentication.
  • Request Token Validators - Validates tokens on every incoming request to enforce access control and identify users.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
  • OAuth Token Refreshes - Controls the creation and validity period of refresh tokens to enable long-lived user sessions.
  • API Access Control - Ensures only authorized users and clients can access specific API endpoints by verifying bearer tokens.
  • Signed JWT Generation - Generates compact signed JSON Web Tokens using private keys for secure distribution.
  • Authentication Frameworks - Provides a secure framework for managing user identities and client authorizations in PHP environments.
  • Authorization Code Exchanges - Verifies authorization codes and client credentials to issue signed access and encrypted refresh tokens.
  • Authorization Code Issuances - Validates client requests and user approvals to create temporary codes exchangeable for tokens.
  • OAuth Client Secret Validators - Verifies OAuth client secrets at the token endpoint to authenticate requesting applications.
  • Grant Type Validations - Validates client and user credentials across various grant flows to ensure secure API access.
  • User Identity Verification - Verifies user credentials against a data store to authorize specific grant requests.
  • Token Lifecycle Management - Implements a complete system for issuing, revoking, and tracking the expiration of access tokens.
  • OAuth Grant Type Handlers - Routes authorization requests through specific grant handlers to validate credentials and issue tokens.
  • Refresh Token Grants - Implements the grant flow to exchange a valid refresh token for a new access token.
  • Token Signing Services - Signs and encrypts digital tokens using asymmetric keys to verify authenticity across distributed services.
  • Token Signing Operations - Implements cryptographic signatures on tokens using private keys to ensure authenticity and integrity across services.
  • Authorization Code Management - Manages the lifecycle of short-lived authorization codes used to exchange for access tokens.
  • Repository Patterns - Uses the repository pattern to decouple domain logic from specific database implementations.
  • Entity Interfaces - Defines strict contracts for authorization entities to maintain consistent data structures across various storage backends.
  • Redirect URI Attestations - Verifies redirect URIs against established standards to prevent open redirect vulnerabilities.
  • OAuth Scope Management - Sets default and final permission scopes for clients using refresh tokens to control access levels.
  • Refresh Token Rotation - Implements refresh token rotation by issuing new tokens and revoking old ones during each refresh cycle.
  • Device Authentication Flows - Implements the OAuth 2.0 device authorization grant for hardware with limited input capabilities.
  • API and Machine Authentication - Implements non-interactive authentication flows for automated service-to-service communication.
  • PKCE Authorization Flows - Enforces Proof Key for Code Exchange to prevent authorization code interception for public clients.
  • Scope Validations - Verifies if requested OAuth scopes are legitimate and modifies them based on user permissions.
  • Public Clients - Permits non-confidential public clients to use authorization grants without requiring client secrets.
  • JWT Token Validators - Verifies JWT authenticity and expiration including configurable time drift leeway for unsynchronized clocks.
  • Single Sign-On - Provides a unified authentication system using signed tokens to maintain sessions across multiple services.
  • Symmetric Encryption - Employs symmetric encryption to protect authorization codes and refresh tokens from tampering.
  • Authorization Code Encryption - Protects sensitive authorization codes using symmetric encryption to prevent tampering and data exposure.
  • Device Grant Implementations - Provides a device authorization grant for hardware that cannot host a web browser for login.
  • Third-Party Platform Authorizations - Enables external applications to securely access user data via standardized authorization codes and redirects.
  • Star history

    Star history chart for thephpleague/oauth2-serverStar history chart for thephpleague/oauth2-server

    How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

    Frequently asked questions

    What does thephpleague/oauth2-server do?

    This project is a PHP library for implementing a spec-compliant OAuth 2.0 authorization server. It serves as an authentication framework for managing user identities and client authorizations, providing the necessary components to issue and validate access and refresh tokens.

    What are the main features of thephpleague/oauth2-server?

    The main features of thephpleague/oauth2-server are: OAuth 2.0 Authorization Servers, Authorization Store Backends, OAuth2-Secured REST APIs, Request Token Validators, OAuth Token Refreshes, API Access Control, Signed JWT Generation, Authentication Frameworks.

    Which projects share features with thephpleague/oauth2-server?

    Projects with overlapping indexed features include: doorkeeper-gem/doorkeeper — Doorkeeper is an OAuth 2 authorization server and provider for Ruby on Rails and Grape applications. It provides the… authlib/authlib — Authlib is a comprehensive Python library for building and integrating OAuth 1.0, OAuth 2.0, and OpenID Connect… anomalyco/openauth — OpenAuth is a standards-based authentication server and identity provider that implements OAuth 2.0 and OpenID Connect… lepture/authlib — Authlib is a comprehensive Python framework for implementing OAuth 1.0, OAuth 2.0, and OpenID Connect clients and… jazzband/djangorestframework-simplejwt — This is a JSON Web Token authentication package for the Django REST Framework that manages stateless user identities.… dexidp/dex — Dex is an OpenID Connect provider and identity federation proxy that translates authentication signals from various…

    Projects sharing features with Oauth2 Server

    These projects share indexed features with Oauth2 Server. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
    • doorkeeper-gem/doorkeeperdoorkeeper-gem avatar

      doorkeeper-gem/doorkeeper

      5,535View on GitHub↗

      Doorkeeper is an OAuth 2 authorization server and provider for Ruby on Rails and Grape applications. It provides the necessary framework to build an authorization server that issues and validates security tokens for third-party applications, effectively acting as a security middleware to protect API endpoints. The project integrates an identity layer via OpenID Connect to verify user identities and retrieve profile information. It supports a variety of security patterns, including the implementation of the PKCE flow for public clients and the issuance of stateless JSON Web Tokens. Its broade

      Ruby
      View on GitHub↗5,535
    • authlib/authlibauthlib avatar

      authlib/authlib

      5,449View on GitHub↗

      Authlib is a comprehensive Python library for building and integrating OAuth 1.0, OAuth 2.0, and OpenID Connect clients and servers. It provides a unified set of tools to manage authentication and authorization flows, allowing applications to either act as a client connecting to external identity providers or as a provider issuing tokens and managing user identities. The project distinguishes itself through a full implementation of the JOSE standards, offering a suite of cryptographic tools for generating, signing, encrypting, and validating JSON Web Tokens, Signatures, Encryption, and Keys.

      Pythondjangoflaskjose
      View on GitHub↗5,449
    • anomalyco/openauthanomalyco avatar

      anomalyco/openauth

      7,436View on GitHub↗

      OpenAuth is a standards-based authentication server and identity provider that implements OAuth 2.0 and OpenID Connect protocols. It serves as a centralized system for managing user identities, issuing access tokens, and orchestrating authentication flows across various services. The project functions as a federated identity gateway, aggregating external providers such as Google, GitHub, Microsoft, Apple, and Discord into a unified login flow. It distinguishes itself with a multi-tenant architecture that supports pluggable identity providers and customizable user interface frameworks for bran

      TypeScript
      View on GitHub↗7,436
    • lepture/authliblepture avatar

      lepture/authlib

      5,346View on GitHub↗

      Authlib is a comprehensive Python framework for implementing OAuth 1.0, OAuth 2.0, and OpenID Connect clients and servers. It provides a complete toolkit for identity management, spanning the development of authorization servers, resource servers, and client-side integrations. The library distinguishes itself through a full implementation of the JOSE specifications, including JSON Web Tokens, Encryption, Signatures, and Keys. It features specialized capabilities for non-interactive authentication via service account assertion frameworks and a compliance-correction layer designed to handle ide

      Python
      View on GitHub↗5,346
    Compare all 30 related projects→

    Curated searches featuring Oauth2 Server

    Hand-picked collections where Oauth2 Server appears.
    • Web Application Authentication Libraries