You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Rewrite the authorization grant logic
This commit is contained in:
@@ -24,6 +24,7 @@ use serde::Serialize;
|
||||
use thiserror::Error;
|
||||
use url::Url;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
enum CallbackDestinationMode {
|
||||
Query {
|
||||
existing_params: HashMap<String, String>,
|
||||
@@ -32,6 +33,7 @@ enum CallbackDestinationMode {
|
||||
FormPost,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CallbackDestination {
|
||||
mode: CallbackDestinationMode,
|
||||
safe_redirect_uri: Url,
|
||||
|
||||
Reference in New Issue
Block a user