feat: define ProcessAuthorizationInterface input port
This commit is contained in:
parent
c82e2ea4a2
commit
8eff4adbb8
|
@ -1,3 +1,4 @@
|
|||
pub mod errors;
|
||||
pub mod login;
|
||||
pub mod process_authorization;
|
||||
// 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…
Reference in a new issue