1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

graphql: expose the logo_uri in the OAuth 2.0 client

Fixes #1705
This commit is contained in:
Quentin Gliech
2023-09-06 09:18:17 +02:00
parent 571e4d2d75
commit bc3f665739
4 changed files with 19 additions and 0 deletions

View File

@ -158,6 +158,11 @@ impl OAuth2Client {
self.0.client_uri.as_ref()
}
/// Logo URI advertised by the client.
pub async fn logo_uri(&self) -> Option<&Url> {
self.0.logo_uri.as_ref()
}
/// Terms of services URI advertised by the client.
pub async fn tos_uri(&self) -> Option<&Url> {
self.0.tos_uri.as_ref()

View File

@ -634,6 +634,10 @@ type Oauth2Client implements Node {
"""
clientUri: Url
"""
Logo URI advertised by the client.
"""
logoUri: Url
"""
Terms of services URI advertised by the client.
"""
tosUri: Url

View File

@ -485,6 +485,8 @@ export type Oauth2Client = Node & {
contacts: Array<Scalars["String"]["output"]>;
/** ID of the object. */
id: Scalars["ID"]["output"];
/** Logo URI advertised by the client. */
logoUri?: Maybe<Scalars["Url"]["output"]>;
/** Privacy policy URI advertised by the client. */
policyUri?: Maybe<Scalars["Url"]["output"]>;
/** List of redirect URIs used for authorization grants by the client. */

View File

@ -1261,6 +1261,14 @@ export default {
},
args: [],
},
{
name: "logoUri",
type: {
kind: "SCALAR",
name: "Any",
},
args: [],
},
{
name: "policyUri",
type: {