Search by

naf / oauth-server

floknapp

Run your application as an OAuth2 authorization server and protect its APIs.

Package info

github.com/nafphp/oauth-server

Type:naf-plugin

pkg:composer/naf/oauth-server

Statistics

Installs: 93

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.3 2026-09-22 21:11 UTC

This package is auto-updated.

Last update: 2026-09-22 21:17:22 UTC


README

NAF

NAF OAuth Server Plugin

← Back to NAF

naf/oauth-server

Be the place people sign in with — an OAuth2 authorization server and OpenID Connect provider, on the accounts you already have.

token()->requireScope('posts.write');

That is the whole of what an API endpoint has to say. The authorization, the consent, the tokens and their revocation are already wired.

🧩 Part of the official NAF plugin collection. Install it when other applications should be able to act on behalf of your users.

Documentation

Being the provider →

Everything about this package — what it does, how it is configured and what it needs — lives in the NAF documentation. Not sure which packages you need? Start here.

Install

composer require naf/oauth-server

License

MIT. Part of NAF.

PHP code style

Source, tests and PHP templates follow the shared NAF code style (PER Coding Style 3.0 with the Nafinity readability rules). After composer install, run composer style:check to verify formatting or composer style:fix to apply it. The formatter is a development dependency. Review template output and run the package checks after changes.