Download the PHP package medienreaktor/neos-oauth without Composer
On this page you can find all versions of the php package medienreaktor/neos-oauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download medienreaktor/neos-oauth
More information about medienreaktor/neos-oauth
Files in medienreaktor/neos-oauth
Package neos-oauth
Short Description OAuth 2 authorization server and bearer token authentication for Neos, based on league/oauth2-server
License MIT
Informations about the package neos-oauth
Neos.OAuth
An OAuth 2 authorization server for Neos 9, based on league/oauth2-server. Users log in with their Neos account and approve a client; the client gets a bearer token that acts as that account.
Setup
Run ./flow doctrine:migrate, then ./flow oauth:status, which checks the keys, tables, issuer, scopes and clients and
tells how to fix what's missing. The issuer is Neos.OAuth.issuer, or else Neos.Flow.http.baseUri or the primary
domain of the default site. The keys are generated on first use in Data/Persistent/Neos.OAuth, which all servers have
to share, or set in Neos.OAuth.keys, e.g. from environment variables.
Endpoints
/oauth/authorize: login and consent page (authorization code grant with PKCE)/oauth/token: authorization code, refresh token and client credentials grants/oauth/register: dynamic client registration (RFC 7591) for public clients, e.g. MCP clients. Disabled by default, enabled in the Development context/.well-known/oauth-authorization-server: server metadata (RFC 8414)/.well-known/oauth-protected-resource/<path>: resource metadata (RFC 9728)
Clients
Packages declare public clients in Neos.OAuth.clients, see Configuration/Settings.yaml. Other clients are managed
on the command line: oauth:createclient (public or --confidential, optionally client_credentials with an
--account), oauth:listclients, oauth:removeclient and oauth:revoketokens. Run oauth:prunetokens regularly to
remove expired tokens.
Accepting the tokens
A package that accepts the tokens
- registers its scopes in
Neos.OAuth.scopes, or aNeos\OAuth\Domain\ScopeProviderinNeos.OAuth.scopeProviders, - adds a
Urirequest pattern for its URLs to theNeos.OAuth:Bearerauthentication provider, - and describes itself in
Neos.OAuth.protectedResources.
Neos\OAuth\Security\OAuthContext::authenticatedGrant() returns the current request's token: its account, client and
scopes. Neos.Api is an example.
License
MIT, see LICENSE.
All versions of neos-oauth with dependencies
ext-curl Version *
neos/flow Version ^9.0
neos/neos Version ^9.0
league/oauth2-server Version ^8.5
guzzlehttp/psr7 Version ^2.4
guzzlehttp/guzzle Version ^7.15.2