{"id":21163468,"url":"https://github.com/punktde/oauth2-server","last_synced_at":"2025-06-20T06:08:00.838Z","repository":{"id":53720054,"uuid":"165523270","full_name":"punktDe/oauth2-server","owner":"punktDe","description":"OAuth 2.0 Server for Flow Framework","archived":false,"fork":false,"pushed_at":"2022-05-04T14:33:44.000Z","size":62,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-20T06:07:47.358Z","etag":null,"topics":["flowframework","neoscms","oauth2"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/punktDe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-13T15:45:05.000Z","updated_at":"2024-11-12T01:49:35.000Z","dependencies_parsed_at":"2022-09-04T08:01:37.686Z","dependency_job_id":null,"html_url":"https://github.com/punktDe/oauth2-server","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/punktDe/oauth2-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Foauth2-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Foauth2-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Foauth2-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Foauth2-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/punktDe","download_url":"https://codeload.github.com/punktDe/oauth2-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Foauth2-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260891177,"owners_count":23077914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flowframework","neoscms","oauth2"],"created_at":"2024-11-20T13:47:13.965Z","updated_at":"2025-06-20T06:07:55.818Z","avatar_url":"https://github.com/punktDe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OAuth 2.0 Server for the Flow Framework\n\n[![Travis Build Status](https://travis-ci.org/punktDe/oauth2-server.svg?branch=master)](https://travis-ci.org/punktDe/oauth2-server) [![Latest Stable Version](https://poser.pugx.org/punktde/oauth2-server/v/stable)](https://packagist.org/packages/punktde/oauth2-server) [![Total Downloads](https://poser.pugx.org/punktde/oauth2-server/downloads)](https://packagist.org/packages/punktde/oauth2-server)\n\nThis [Flow](https://flow.neos.io) package provides an OAuth 2.0 server, based on [The PHP League OAuth Server](https://oauth2.thephpleague.com/).\n\n# Setup\n\n## Installation\n\nThe installation is done with composer:\n\n\tcomposer require punktde/oauth2-server\n\t\nRun the doctrine migrations\n\t\n\t./flow doctrine:migrate\n\nOptional: Define position of routes\n\n\tRoutes are per default included without any position parameter. If routes are positioned wrong adjust the position accordig to the [Flow Route documentation](https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartIII/Routing.html#subroutes-from-settings)\n\n## Configuration\n\nEnable the required grant types within your settings:\n\n\tPunktDe:\n\t  OAuth2:\n\t    Server:\n\t      grantTypes:\n\t        client_credentials:\n\t          enabled: false\n\t        authorization_code:\n\t          enabled: false\n\nHave a look at `Settings.PunktDe.yaml` for further configuration values.  \n\nGenerate server keys:\n\n\t./flow oauthserver:generateserverkeys\n\nCreate client credentials:\n\n\t./flow oauthserver:createclientcredentials \u003cidentifier\u003e \u003cname\u003e \u003cgrant-type\u003e\n\t\n# Implemented Grants\n\nThere is a good listing at [thephpleague.com](https://oauth2.thephpleague.com/authorization-server/which-grant/) of all grant types of OAuth2 which should help you to find the type that fits to your application.\n\nThe following OAuth 2.0 grant types are implemented:\n\n## Client credentials Grant\n\nIf you are authorizing a machine to access resources and you don’t require the permission of a user to access said resources you should implement the client credential grant.\n\n## Authorization code grant\n\nIf the client is a web application that has a server side component then you should implement the authorization code grant.\n\nThe urls to use are: \n\n* Access Token URL: `\u003cYourDomain\u003e/oauth/token`\n* Authorization URL: `\u003cYourDomain\u003e/oauth/authorize`\n* Authorization approval URL: `oauth/approveauthorization`\n\nThe Authorization code grant is currently implemented with an implicit authorization of the requesting application.\n\n### Authenticating users during authorization process\n\nIf `/oauth/authorize` is called without an authenticated Flow account, the user is automatically redirected to a configurable URL. \nAfter authentication, the user should be forwarded to `/oauth/approveauthorization` to approve the previously started authorization session.\n\n### Custom authorization request approval\n\nAuthentication request approval can be extended to fit your projects needs. You can put your custom logic into a class implementing the `ApprovalStrategyInterface`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Foauth2-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpunktde%2Foauth2-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Foauth2-server/lists"}