pub trait OAuthRedirectHandler: Send + Sync {
// Required methods
fn initiate_redirect(&self, request: OAuthRequest) -> AuthResult<()>;
fn complete_redirect(&self) -> AuthResult<Option<AuthCredential>>;
}Expand description
Handles OAuth redirect-based flows.
Redirect flows require two phases:
- Call
initiate_redirectbefore leaving the current context. - After the application reloads/returns, call
complete_redirectto resolve the awaited credential.