Commit Graph
139 Commits
Author SHA1 Message Date
ErickSkrauch 91737face0 Deduplicate aliased scopes and compare them correctly while deciding about when to auto approve client 2026-11-03 19:37:46 +01:00
ErickSkrauch 692741e992 Fix redirect uri validation for web applications, that is actually desktops because they need to redirect to localhost 2026-11-03 03:19:54 +01:00
ErickSkrauch b1769ab451 Add support of issuer in the authorization response (RFC 9207) 2026-11-03 02:18:31 +01:00
ErickSkrauch a217b5225e Explicitly deny support of the request OIDC method 2026-11-03 02:18:31 +01:00
ErickSkrauch db4a292d24 Implemented OIDC support 2026-11-03 02:18:31 +01:00
ErickSkrauch e9f53b2155 Introduce oauth jwks endpoint 2026-11-02 18:36:01 +01:00
ErickSkrauch 1dee7f54a3 Introduce oauth discovery endpoint 2026-11-02 16:59:25 +01:00
ErickSkrauch 1a0071f424 Implemented revoke token endpoint 2026-11-02 16:39:03 +01:00
ErickSkrauch e220f70b8d Remove custom description support 2026-11-02 16:13:35 +01:00
ErickSkrauch 9c0858922e Remove auto approve from device code grant 2026-11-02 16:07:54 +01:00
ErickSkrauch f7f43c1190 Revoke OAuth 2 tokens on account password change.
List all authenticated OAuth clients, revoke by deleting
2026-11-02 16:07:53 +01:00
ErickSkrauch e779f96a70 Include verification uri complete into device code flow response 2026-11-02 15:17:40 +01:00
ErickSkrauch 86992565c5 Don't expose internal permissions names as scopes in the JWT tokens and overall improve scopes management 2026-11-02 15:17:40 +01:00
ErickSkrauch c4c35fb6b2 Improve OAuth standard compatibility 2026-11-02 12:35:06 +01:00
ErickSkrauch a1b482dbe7 Fix invalida concatenation of the redirect_uri 2026-11-02 02:57:28 +01:00
Octol1ttleandErickSkrauch 5225ea1b02 Update Mojang API response code and messages, implement UUID->Username endpoint (#47)
* Update Mojang API response code and messages, implement UUID->Username endpoint

* php-cs-fixer

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* review: address the minor issues

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* try to implement legacy response support (all tests are failing (routing is broken))

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* well that was 10x easier

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* fix: php-cs-fixer

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* Fix PHPStan errors and update tests for authlib-injector entrypoint. Final polishing before merge

---------

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
Co-authored-by: ErickSkrauch <erickskrauch@yandex.ru>
2025-03-01 01:08:52 +01:00
ErickSkrauch be4697e6eb Extract login logics into a separate component. Not quite clean result but enough for upcoming tasks 2025-01-17 21:37:35 +01:00
ErickSkrauch 1c2969a4be Implemented desktop application type 2025-01-15 14:13:08 +01:00
ErickSkrauch e5b395d11b Fix verb filter 2024-12-24 17:45:49 +01:00
ErickSkrauch 1c11c66b9c Rename device code endpoint to /devicecode 2024-12-24 01:20:58 +01:00
ErickSkrauch 119a0f8078 Validate user_code expiry during the Device Code grant.
Add mock responses related to the Device Code grant.
2024-12-14 18:55:31 +01:00
ErickSkrauch 2cc27d34ad Implemented device code grant 2024-12-08 16:54:45 +01:00
ErickSkrauch 5ed6f0ce86 Move OAuth module from API to common and solve PHPStan's errors 2024-12-06 01:34:09 +01:00
Octol1ttleandErickSkrauch 57d492da8a Upgrade project to PHP 8.3, add PHPStan, upgrade almost every dependency (#36)
* start updating to PHP 8.3

* taking off!

Co-authored-by: ErickSkrauch <erickskrauch@yandex.ru>
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* dropped this

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* migrate to symfonymailer

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* this is so stupid 😭

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* ah, free, at last.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* oh, Gabriel.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* now dawns thy reckoning.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* and thy gore shall GLISTEN before the temples of man.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* creature of steel.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* my gratitude upon thee for my freedom.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* but the crimes thy kind has committed against humanity

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* Upgrade PHP-CS-Fixer and do fix the codebase

* First review round (maybe I have broken something)

* are NOT forgotten.

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>

* Enable parallel PHP-CS-Fixer runner

* PHPStan level 1

* PHPStan level 2

* PHPStan level 3

* PHPStan level 4

* PHPStan level 5

* Levels 6 and 7 takes too much effort. Generate a baseline and fix them eventually

* Resolve TODO's related to the php-mock

* Drastically reduce baseline size with the Rector

* More code modernization with help of the Rector

* Update GitLab CI

---------

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
Co-authored-by: ErickSkrauch <erickskrauch@yandex.ru>
2024-12-02 11:10:55 +01:00
ErickSkrauch 625250b367 Fixes #35. Make clientToken optional during legacy Minecraft auth flow 2024-11-24 10:25:22 +01:00
ErickSkrauch 0c110213f4 Remove minecraft_access_keys table and all related code 2024-06-14 05:42:35 +02:00
ErickSkrauch 16877d502d Drop usage of goaop, replace implementation with events 2023-11-20 04:39:13 +01:00
ErickSkrauch 47463d7435 Fix sessionserver/join endpoint: return empty response with 204 status code on success join 2023-11-16 20:21:26 +01:00
ErickSkrauch a1eb5f3be6 Fixes ACCOUNTS-6A. Force value to string for client token validation 2023-05-26 18:48:15 +02:00
ErickSkrauch 99c983c3ea Fixes #16. Correctly wrap Yii2's request into the PSR's ServerRequest object 2022-12-10 03:57:43 +01:00
ErickSkrauch 262bdbc08e Fixes #17. Simplify redirect_uri validation rules to allow localhost 2022-12-10 02:51:47 +01:00
ErickSkrauch f4fa5ad2df Add additional tests cases, implemented custom error formatter 2022-01-28 12:38:00 +01:00
ErickSkrauch 31febd5606 #20 Quick implementation of the https://api.minecraftservices.com/minecraft/profile endpoint [deploy dev] 2022-01-21 21:09:46 +01:00
ErickSkrauch f69ebf8221 Add types to the ApiController 2021-06-13 21:28:13 +02:00
ErickSkrauch 202099bf84 Implemented missing endpoint for the authlib injector 2021-06-13 21:21:25 +02:00
ErickSkrauch e6b6f3f169 Allow users to manually decline auth request even when an application was authenticated before 2021-03-29 04:51:37 +02:00
ErickSkrauch 7a80c44cab Alternative implementation of passing totp to the legacy Minecraft authorization protocol to not break the yggdrasil's protocol [deploy] 2021-03-08 22:21:10 +01:00
ErickSkrauch 9a3534ea2b Add totp field for Minecraft auth protocol to login into accounts, protected with 2FA [deploy] 2021-03-08 11:26:47 +01:00
ErickSkrauch 1aed8f59cb Return user field when requestUser param received on authentication/refresh endpoint [deploy] 2021-03-06 10:37:58 +01:00
ErickSkrauch 077db4f328 Remove authserver module restriction [deploy] 2021-03-05 16:07:55 +01:00
ErickSkrauch 4856695940 Resolves #2. Implemented authlib-injector support 2021-03-03 15:04:42 +01:00
ErickSkrauch 9c6d9409ea Fixes #11. Strip slashes from profile UUID in the authserver's response 2021-02-18 00:41:38 +01:00
ErickSkrauch 356518c5b5 Merge branch 'authorized_clients_management' 2021-02-14 19:01:19 +01:00
ErickSkrauch c64f386365 Fix incorrect response in case when user's profile for provided UUID can't be found 2020-12-18 11:12:34 +01:00
ErickSkrauch 5fc97fdd7a Implemented oauth session revocation notification.
Reworked webhooks notifications constructors
2020-10-01 01:40:28 +03:00
ErickSkrauch b904d5d314 Implemented features to revoke access for previously authorized OAuth 2.0 clients 2020-09-30 20:30:04 +03:00
ErickSkrauch 17f1794a4e Covered all cases, fixed CS, added a new TODO 2020-06-13 01:55:02 +03:00
ErickSkrauch 0183e54442 Implemented account deletion. Not all cases covered with tests [skip ci] 2020-06-12 00:27:02 +03:00
ErickSkrauch 39d7cad8b5 Fix CS 2020-06-10 17:42:02 +03:00
ErickSkrauch 666213afc7 Rework email_activation model, get rid of behaviors, use json column to store additional data 2019-12-21 01:23:58 +03:00