Skip to content

Commit

Permalink
Update OIDC registration types to match latest MSC2966 state (#4432)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
t3chguy authored Sep 25, 2024
1 parent 538717c commit f7229bf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/oidc/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,20 @@ export type OidcRegistrationClientMetadata = {
policyUri: OidcRegistrationRequestBody["policy_uri"];
};

/**
* Request body for dynamic registration as defined by https://github.com/matrix-org/matrix-spec-proposals/pull/2966
*/
interface OidcRegistrationRequestBody {
client_name: string;
client_name?: string;
client_uri: string;
logo_uri?: string;
contacts: NonEmptyArray<string>;
tos_uri: string;
policy_uri: string;
contacts?: string[];
tos_uri?: string;
policy_uri?: string;
redirect_uris?: NonEmptyArray<string>;
response_types?: NonEmptyArray<string>;
grant_types?: NonEmptyArray<string>;
id_token_signed_response_alg: string;
id_token_signed_response_alg?: string;
token_endpoint_auth_method: string;
application_type: "web" | "native";
}
Expand Down

0 comments on commit f7229bf

Please sign in to comment.