You've already forked authentication-service
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user