Function wicrs_server::api::start_login [−][src]
pub async fn start_login(
auth_manager: Arc<RwLock<Auth>>,
service: Service
) -> String
Start the OAuth login process. Returns a redirect to the given OAuth service’s page with the correct parameters.
Arguments
auth_manager
- The Authentication manager for the current server instance, wrapped in Arc> so that it can be used by multiple threads. service
- The OAuth service to use for this login attempt.