1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Implement the client credentials grant

This commit is contained in:
Quentin Gliech
2023-09-04 19:45:53 +02:00
parent 00fe5f902b
commit 542d0a6073
17 changed files with 498 additions and 127 deletions

View File

@@ -13,4 +13,9 @@
-- limitations under the License.
-- This makes the user_id in the oauth2_sessions nullable, which allows us to create user-less sessions
ALTER TABLE oauth2_sessions ALTER COLUMN user_id DROP NOT NULL;
ALTER TABLE oauth2_sessions
ALTER COLUMN user_id DROP NOT NULL;
-- This adds a column to the oauth2_clients to allow them to use the client_credentials flow
ALTER TABLE oauth2_clients
ADD COLUMN grant_type_client_credentials boolean NOT NULL DEFAULT false;