1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Update OIDC registration types to match latest MSC2966 state (#4432)

* Update OIDC registration types to match latest MSC2966 state

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2024-09-25 17:30:13 +01:00
committed by GitHub
parent 538717c23e
commit f7229bfff0

View File

@@ -34,17 +34,20 @@ export type OidcRegistrationClientMetadata = {
policyUri: OidcRegistrationRequestBody["policy_uri"]; policyUri: OidcRegistrationRequestBody["policy_uri"];
}; };
/**
* Request body for dynamic registration as defined by https://github.com/matrix-org/matrix-spec-proposals/pull/2966
*/
interface OidcRegistrationRequestBody { interface OidcRegistrationRequestBody {
client_name: string; client_name?: string;
client_uri: string; client_uri: string;
logo_uri?: string; logo_uri?: string;
contacts: NonEmptyArray<string>; contacts?: string[];
tos_uri: string; tos_uri?: string;
policy_uri: string; policy_uri?: string;
redirect_uris?: NonEmptyArray<string>; redirect_uris?: NonEmptyArray<string>;
response_types?: NonEmptyArray<string>; response_types?: NonEmptyArray<string>;
grant_types?: NonEmptyArray<string>; grant_types?: NonEmptyArray<string>;
id_token_signed_response_alg: string; id_token_signed_response_alg?: string;
token_endpoint_auth_method: string; token_endpoint_auth_method: string;
application_type: "web" | "native"; application_type: "web" | "native";
} }