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

Setup the device link form page

This commit is contained in:
Quentin Gliech
2023-12-06 18:57:38 +01:00
parent ae05cbc1f1
commit 4301fd9378
8 changed files with 257 additions and 10 deletions

View File

@@ -689,6 +689,23 @@ impl Route for UpstreamOAuth2Link {
}
}
/// `GET|POST /link`
#[derive(Default, Serialize, Deserialize, Debug, Clone)]
pub struct DeviceCodeLink {
code: Option<String>,
}
impl Route for DeviceCodeLink {
type Query = DeviceCodeLink;
fn route() -> &'static str {
"/link"
}
fn query(&self) -> Option<&Self::Query> {
Some(self)
}
}
/// `GET /assets`
pub struct StaticAsset {
path: String,