├── LICENSE ├── composer.json ├── phpcs.xml.dist ├── phpstan.neon.dist └── src ├── AuthorizationServer.php ├── AuthorizationValidators ├── AuthorizationValidatorInterface.php └── BearerTokenValidator.php ├── CodeChallengeVerifiers ├── CodeChallengeVerifierInterface.php ├── PlainVerifier.php └── S256Verifier.php ├── CryptKey.php ├── CryptKeyInterface.php ├── CryptTrait.php ├── Entities ├── AccessTokenEntityInterface.php ├── AuthCodeEntityInterface.php ├── ClientEntityInterface.php ├── DeviceCodeEntityInterface.php ├── RefreshTokenEntityInterface.php ├── ScopeEntityInterface.php ├── TokenInterface.php ├── Traits │ ├── AccessTokenTrait.php │ ├── AuthCodeTrait.php │ ├── ClientTrait.php │ ├── DeviceCodeTrait.php │ ├── EntityTrait.php │ ├── RefreshTokenTrait.php │ ├── ScopeTrait.php │ └── TokenEntityTrait.php └── UserEntityInterface.php ├── EventEmitting ├── AbstractEvent.php ├── EmitterAwareInterface.php ├── EmitterAwarePolyfill.php └── EventEmitter.php ├── Exception ├── OAuthServerException.php └── UniqueTokenIdentifierConstraintViolationException.php ├── Grant ├── AbstractAuthorizeGrant.php ├── AbstractGrant.php ├── AuthCodeGrant.php ├── ClientCredentialsGrant.php ├── DeviceCodeGrant.php ├── GrantTypeInterface.php ├── ImplicitGrant.php ├── PasswordGrant.php └── RefreshTokenGrant.php ├── Middleware ├── AuthorizationServerMiddleware.php └── ResourceServerMiddleware.php ├── RedirectUriValidators ├── RedirectUriValidator.php └── RedirectUriValidatorInterface.php ├── Repositories ├── AccessTokenRepositoryInterface.php ├── AuthCodeRepositoryInterface.php ├── ClientRepositoryInterface.php ├── DeviceCodeRepositoryInterface.php ├── RefreshTokenRepositoryInterface.php ├── RepositoryInterface.php ├── ScopeRepositoryInterface.php └── UserRepositoryInterface.php ├── RequestAccessTokenEvent.php ├── RequestEvent.php ├── RequestRefreshTokenEvent.php ├── RequestTypes ├── AuthorizationRequest.php └── AuthorizationRequestInterface.php ├── ResourceServer.php └── ResponseTypes ├── AbstractResponseType.php ├── BearerTokenResponse.php ├── DeviceCodeResponse.php ├── RedirectResponse.php └── ResponseTypeInterface.php /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/LICENSE -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/composer.json -------------------------------------------------------------------------------- /phpcs.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/phpcs.xml.dist -------------------------------------------------------------------------------- /phpstan.neon.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/phpstan.neon.dist -------------------------------------------------------------------------------- /src/AuthorizationServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/AuthorizationServer.php -------------------------------------------------------------------------------- /src/AuthorizationValidators/AuthorizationValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/AuthorizationValidators/AuthorizationValidatorInterface.php -------------------------------------------------------------------------------- /src/AuthorizationValidators/BearerTokenValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/AuthorizationValidators/BearerTokenValidator.php -------------------------------------------------------------------------------- /src/CodeChallengeVerifiers/CodeChallengeVerifierInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/CodeChallengeVerifiers/CodeChallengeVerifierInterface.php -------------------------------------------------------------------------------- /src/CodeChallengeVerifiers/PlainVerifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/CodeChallengeVerifiers/PlainVerifier.php -------------------------------------------------------------------------------- /src/CodeChallengeVerifiers/S256Verifier.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/CodeChallengeVerifiers/S256Verifier.php -------------------------------------------------------------------------------- /src/CryptKey.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/CryptKey.php -------------------------------------------------------------------------------- /src/CryptKeyInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/CryptKeyInterface.php -------------------------------------------------------------------------------- /src/CryptTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/CryptTrait.php -------------------------------------------------------------------------------- /src/Entities/AccessTokenEntityInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/AccessTokenEntityInterface.php -------------------------------------------------------------------------------- /src/Entities/AuthCodeEntityInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/AuthCodeEntityInterface.php -------------------------------------------------------------------------------- /src/Entities/ClientEntityInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/ClientEntityInterface.php -------------------------------------------------------------------------------- /src/Entities/DeviceCodeEntityInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/DeviceCodeEntityInterface.php -------------------------------------------------------------------------------- /src/Entities/RefreshTokenEntityInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/RefreshTokenEntityInterface.php -------------------------------------------------------------------------------- /src/Entities/ScopeEntityInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/ScopeEntityInterface.php -------------------------------------------------------------------------------- /src/Entities/TokenInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/TokenInterface.php -------------------------------------------------------------------------------- /src/Entities/Traits/AccessTokenTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/AccessTokenTrait.php -------------------------------------------------------------------------------- /src/Entities/Traits/AuthCodeTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/AuthCodeTrait.php -------------------------------------------------------------------------------- /src/Entities/Traits/ClientTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/ClientTrait.php -------------------------------------------------------------------------------- /src/Entities/Traits/DeviceCodeTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/DeviceCodeTrait.php -------------------------------------------------------------------------------- /src/Entities/Traits/EntityTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/EntityTrait.php -------------------------------------------------------------------------------- /src/Entities/Traits/RefreshTokenTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/RefreshTokenTrait.php -------------------------------------------------------------------------------- /src/Entities/Traits/ScopeTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/ScopeTrait.php -------------------------------------------------------------------------------- /src/Entities/Traits/TokenEntityTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/Traits/TokenEntityTrait.php -------------------------------------------------------------------------------- /src/Entities/UserEntityInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Entities/UserEntityInterface.php -------------------------------------------------------------------------------- /src/EventEmitting/AbstractEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/EventEmitting/AbstractEvent.php -------------------------------------------------------------------------------- /src/EventEmitting/EmitterAwareInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/EventEmitting/EmitterAwareInterface.php -------------------------------------------------------------------------------- /src/EventEmitting/EmitterAwarePolyfill.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/EventEmitting/EmitterAwarePolyfill.php -------------------------------------------------------------------------------- /src/EventEmitting/EventEmitter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/EventEmitting/EventEmitter.php -------------------------------------------------------------------------------- /src/Exception/OAuthServerException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Exception/OAuthServerException.php -------------------------------------------------------------------------------- /src/Exception/UniqueTokenIdentifierConstraintViolationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Exception/UniqueTokenIdentifierConstraintViolationException.php -------------------------------------------------------------------------------- /src/Grant/AbstractAuthorizeGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/AbstractAuthorizeGrant.php -------------------------------------------------------------------------------- /src/Grant/AbstractGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/AbstractGrant.php -------------------------------------------------------------------------------- /src/Grant/AuthCodeGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/AuthCodeGrant.php -------------------------------------------------------------------------------- /src/Grant/ClientCredentialsGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/ClientCredentialsGrant.php -------------------------------------------------------------------------------- /src/Grant/DeviceCodeGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/DeviceCodeGrant.php -------------------------------------------------------------------------------- /src/Grant/GrantTypeInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/GrantTypeInterface.php -------------------------------------------------------------------------------- /src/Grant/ImplicitGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/ImplicitGrant.php -------------------------------------------------------------------------------- /src/Grant/PasswordGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/PasswordGrant.php -------------------------------------------------------------------------------- /src/Grant/RefreshTokenGrant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Grant/RefreshTokenGrant.php -------------------------------------------------------------------------------- /src/Middleware/AuthorizationServerMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Middleware/AuthorizationServerMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/ResourceServerMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Middleware/ResourceServerMiddleware.php -------------------------------------------------------------------------------- /src/RedirectUriValidators/RedirectUriValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/RedirectUriValidators/RedirectUriValidator.php -------------------------------------------------------------------------------- /src/RedirectUriValidators/RedirectUriValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/RedirectUriValidators/RedirectUriValidatorInterface.php -------------------------------------------------------------------------------- /src/Repositories/AccessTokenRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/AccessTokenRepositoryInterface.php -------------------------------------------------------------------------------- /src/Repositories/AuthCodeRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/AuthCodeRepositoryInterface.php -------------------------------------------------------------------------------- /src/Repositories/ClientRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/ClientRepositoryInterface.php -------------------------------------------------------------------------------- /src/Repositories/DeviceCodeRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/DeviceCodeRepositoryInterface.php -------------------------------------------------------------------------------- /src/Repositories/RefreshTokenRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/RefreshTokenRepositoryInterface.php -------------------------------------------------------------------------------- /src/Repositories/RepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/RepositoryInterface.php -------------------------------------------------------------------------------- /src/Repositories/ScopeRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/ScopeRepositoryInterface.php -------------------------------------------------------------------------------- /src/Repositories/UserRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/Repositories/UserRepositoryInterface.php -------------------------------------------------------------------------------- /src/RequestAccessTokenEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/RequestAccessTokenEvent.php -------------------------------------------------------------------------------- /src/RequestEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/RequestEvent.php -------------------------------------------------------------------------------- /src/RequestRefreshTokenEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/RequestRefreshTokenEvent.php -------------------------------------------------------------------------------- /src/RequestTypes/AuthorizationRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/RequestTypes/AuthorizationRequest.php -------------------------------------------------------------------------------- /src/RequestTypes/AuthorizationRequestInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/RequestTypes/AuthorizationRequestInterface.php -------------------------------------------------------------------------------- /src/ResourceServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/ResourceServer.php -------------------------------------------------------------------------------- /src/ResponseTypes/AbstractResponseType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/ResponseTypes/AbstractResponseType.php -------------------------------------------------------------------------------- /src/ResponseTypes/BearerTokenResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/ResponseTypes/BearerTokenResponse.php -------------------------------------------------------------------------------- /src/ResponseTypes/DeviceCodeResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/ResponseTypes/DeviceCodeResponse.php -------------------------------------------------------------------------------- /src/ResponseTypes/RedirectResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/ResponseTypes/RedirectResponse.php -------------------------------------------------------------------------------- /src/ResponseTypes/ResponseTypeInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thephpleague/oauth2-server/HEAD/src/ResponseTypes/ResponseTypeInterface.php --------------------------------------------------------------------------------