@@ -108,7 +108,7 @@ pub struct AtprotoLocalhostClientMetadata {
108
108
#[ derive( Clone , Debug , PartialEq , Eq , Serialize , Deserialize ) ]
109
109
pub struct AtprotoClientMetadata {
110
110
pub client_id : String ,
111
- pub client_uri : String ,
111
+ pub client_uri : Option < String > ,
112
112
pub redirect_uris : Vec < String > ,
113
113
pub token_endpoint_auth_method : AuthMethod ,
114
114
pub grant_types : Vec < GrantType > ,
@@ -209,7 +209,7 @@ impl TryIntoOAuthClientMetadata for AtprotoClientMetadata {
209
209
}
210
210
Ok ( OAuthClientMetadata {
211
211
client_id : self . client_id ,
212
- client_uri : Some ( self . client_uri ) ,
212
+ client_uri : self . client_uri ,
213
213
redirect_uris : self . redirect_uris ,
214
214
token_endpoint_auth_method : Some ( self . token_endpoint_auth_method . into ( ) ) ,
215
215
grant_types : Some ( self . grant_types . into_iter ( ) . map ( |v| v. into ( ) ) . collect ( ) ) ,
@@ -331,7 +331,7 @@ gbGGr0pN+oSing7cZ0169JaRHTNh+0LNQXrFobInX6cj95FzEdRyT4T3
331
331
fn test_client_metadata ( ) {
332
332
let metadata = AtprotoClientMetadata {
333
333
client_id : String :: from ( "https://example.com/client_metadata.json" ) ,
334
- client_uri : String :: from ( "https://example.com" ) ,
334
+ client_uri : Some ( String :: from ( "https://example.com" ) ) ,
335
335
redirect_uris : vec ! [ String :: from( "https://example.com/callback" ) ] ,
336
336
token_endpoint_auth_method : AuthMethod :: PrivateKeyJwt ,
337
337
grant_types : vec ! [ GrantType :: AuthorizationCode ] ,
0 commit comments