diff --git a/scripts/msc4191-auth-metadata.patch b/scripts/msc4191-auth-metadata.patch new file mode 100644 index 0000000..3dfa381 --- /dev/null +++ b/scripts/msc4191-auth-metadata.patch @@ -0,0 +1,37 @@ +diff --git a/data/api/client-server/oauth_server_metadata.yaml b/data/api/client-server/oauth_server_metadata.yaml +index 4cdb3aa6..2a49064e 100644 +--- a/data/api/client-server/oauth_server_metadata.yaml ++++ b/data/api/client-server/oauth_server_metadata.yaml +@@ -139,6 +139,24 @@ paths: + items: + type: string + description: A prompt value that the server supports. ++ account_management_uri: ++ type: string ++ format: uri ++ description: |- ++ The URL where the user is able to access the account management capabilities of the homeserver. ++ ++ This is what is currently referred to as the "homeserver's web UI" ++ ++ MSC4191: Account management for OAuth 2.0 API ++ account_management_actions_supported: ++ type: array ++ description: A JSON array of actions that the account management URL supports ++ items: ++ type: string ++ description: |- ++ Actions that the account management URL supports ++ ++ MSC4191: Account management for OAuth 2.0 API + required: + - issuer + - authorization_endpoint +@@ -149,6 +167,7 @@ paths: + - grant_types_supported + - response_modes_supported + - code_challenge_methods_supported ++ additionalProperties: true + example: { + "issuer": "https://account.example.com/", + "authorization_endpoint": "https://account.example.com/oauth2/auth", diff --git a/scripts/prepare_matrix.sh b/scripts/prepare_matrix.sh index 5d2f1d8..b88689e 100755 --- a/scripts/prepare_matrix.sh +++ b/scripts/prepare_matrix.sh @@ -49,6 +49,9 @@ git apply ../scripts/get-room-state.patch echo "Applying space hierarchy patch" git apply ../scripts/space-hierarchy.patch +echo "Applying MSC4191 auth metadata patch" +git apply ../scripts/msc4191-auth-metadata.patch + ) fi