mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-03 13:53:21 +00:00
fix: Allow scopes to be optional
This commit is contained in:
1 file changed
+2
-1
@@ -102,7 +102,7 @@ impl Display for RequestedScopes {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
#[derive(Debug, Clone, Default, Deserialize, Serialize)]
|
||||
pub struct RawScopes(String);
|
||||
|
||||
impl RawScopes {
|
||||
@@ -259,6 +259,7 @@ pub enum TokenRequestType {
|
||||
},
|
||||
ClientCredentials {
|
||||
client_secret: String,
|
||||
#[serde(default)]
|
||||
scope: RawScopes,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user