1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-24 23:01:05 +03:00

Save the application_type and the contacts in the OAuth 2.0 clients

This also removes the dedicated "redirect_uris" table and makes it a field of the "oauth2_clients" table
This commit is contained in:
Quentin Gliech
2023-08-28 12:31:17 +02:00
parent f9dabf0bbc
commit 096386e9b9
22 changed files with 312 additions and 257 deletions

View File

@@ -382,15 +382,27 @@ export type Node = {
id: Scalars["ID"]["output"];
};
/** The application type advertised by the client. */
export enum Oauth2ApplicationType {
/** Client is a native application. */
Native = "NATIVE",
/** Client is a web application. */
Web = "WEB",
}
/** An OAuth 2.0 client */
export type Oauth2Client = Node & {
__typename?: "Oauth2Client";
/** The application type advertised by the client. */
applicationType?: Maybe<Oauth2ApplicationType>;
/** OAuth 2.0 client ID */
clientId: Scalars["String"]["output"];
/** Client name advertised by the client. */
clientName?: Maybe<Scalars["String"]["output"]>;
/** Client URI advertised by the client. */
clientUri?: Maybe<Scalars["Url"]["output"]>;
/** List of contacts advertised by the client. */
contacts: Array<Scalars["String"]["output"]>;
/** ID of the object. */
id: Scalars["ID"]["output"];
/** Privacy policy URI advertised by the client. */