feat: define ProcessAuthorizationInterface input port

This commit is contained in:
Aravinth Manivannan 2024-05-10 20:32:37 +05:30
parent c82e2ea4a2
commit 8eff4adbb8
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,4 @@
pub mod errors;
pub mod login;
pub mod process_authorization;
// login

View 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<()>;
}