summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormrw1593 <botahamec@outlook.com>2023-05-29 16:03:25 -0400
committermrw1593 <botahamec@outlook.com>2023-05-29 16:03:25 -0400
commit747b7e6d399dc70c15262348ec763037c77f2013 (patch)
tree00a8ea53112db07e3d96d6e29c782038b5694db0 /src
parentefae29e1f9f2b285fcaad14527b8ef340bca763e (diff)
Filled out the rest of the query parameters
Diffstat (limited to 'src')
-rw-r--r--src/api/oauth.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/oauth.rs b/src/api/oauth.rs
index 9916053..c6504e1 100644
--- a/src/api/oauth.rs
+++ b/src/api/oauth.rs
@@ -6,6 +6,7 @@ use sqlx::MySqlPool;
use tera::Tera;
use unic_langid::subtags::Language;
use url::Url;
+use uuid::Uuid;
use crate::resources::{languages, templates};
use crate::services::db;
@@ -20,7 +21,10 @@ enum ResponseType {
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AuthorizationParameters {
response_type: ResponseType,
+ client_id: Uuid,
redirect_uri: Option<Url>,
+ scope: String, // TODO lol no
+ state: Option<Box<str>>,
}
#[derive(Debug, Clone, Deserialize)]