gnu-social/plugins/OAuth2
Hugo Sales fa0d02a9ac
[PLUGIN][OAuth2] Start adding OAuth2 support with client registration
This hardcodes the user, and has some other issues, so it is not yet
complete.

We follow mastodon's spec for automatic client registration, available
at both `/api/v1/apps` and a more reasonable `/oauth/client`. This
accepts a JSON POST with the client info and returns JSON with a
`client_id` and a `client_secret`, to be used with `/oauth/authorize`
and `/oauth/token`. It also, seemingly, requires returning an `id`
with unclear purpose.

The `/oauth/token` endpoint doesn't currently return a `me` field.
2022-01-25 13:35:44 +00:00
..
Controller [PLUGIN][OAuth2] Start adding OAuth2 support with client registration 2022-01-25 13:35:44 +00:00
Entity [PLUGIN][OAuth2] Start adding OAuth2 support with client registration 2022-01-25 13:35:44 +00:00
Repository [PLUGIN][OAuth2] Start adding OAuth2 support with client registration 2022-01-25 13:35:44 +00:00
composer.json [PLUGIN][OAuth2] Start adding OAuth2 support with client registration 2022-01-25 13:35:44 +00:00
config.yaml [PLUGIN][OAuth2] Start adding OAuth2 support with client registration 2022-01-25 13:35:44 +00:00
OAuth2.php [PLUGIN][OAuth2] Start adding OAuth2 support with client registration 2022-01-25 13:35:44 +00:00