feat: define ProcessAuthorizationInterface input port
This commit is contained in:
parent
c82e2ea4a2
commit
8eff4adbb8
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
pub mod errors;
|
pub mod errors;
|
||||||
pub mod login;
|
pub mod login;
|
||||||
|
pub mod process_authorization;
|
||||||
// login
|
// login
|
||||||
|
|
14
src/auth/application/port/input/ui/process_authorization.rs
Normal file
14
src/auth/application/port/input/ui/process_authorization.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
use url::Url;
|
||||||
|
|
||||||
|
use super::errors::*;
|
||||||
|
|
||||||
|
#[async_trait::async_trait]
|
||||||
|
pub trait ProcessAuthorizationInterface: Send + Sync {
|
||||||
|
async fn process_authorization(
|
||||||
|
&self,
|
||||||
|
code: String,
|
||||||
|
state: String,
|
||||||
|
oauth_provider: String,
|
||||||
|
redirect_uri: Option<Url>,
|
||||||
|
) -> InUIResult<()>;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue