/// Register the necessary actix services to support this identity
/// provider.
Register the necessary actix services to support this identity
provider.
Register the necessary actix services to support this identity provider .
fn register_services(config: &mut ServiceConfig) {
        config
            .route(
                Self::register_path().as_str(),
                aweb::get().to(Self::registration_handler),
            )
            .route(
                Self::login_path().as_str(),
                aweb::get().to(Self::login_handler),
            )
            .route(
                Self::link_path().as_str(),
                aweb::get().to(Self::link_handler),
            )
            .route(
                Self::unlink_path().as_str(),
                aweb::get().to(Self::unlink_handler),
            )
            .route(
                Self::login_redirect_path().as_str(),
                aweb::get().to(Self::login_authenticated_handler),
            )
            .route(
                Self::registration_redirect_path().as_str(),
                aweb::get().to(Self::registration_authenticated_handler),
            )
            .route(
                Self::link_redirect_path().as_str(),
                aweb::get().to(Self::linking_authenticated_handler),
            );
    }
fn register_services ( config : & mut ServiceConfig ) { config . route ( Self :: register_path ( ) . as_str ( ) , aweb :: get ( ) . to ( Self :: registration_handler ) , ) . route ( Self :: login_path ( ) . as_str ( ) , aweb :: get ( ) . to ( Self :: login_handler ) , ) . route ( Self :: link_path ( ) . as_str ( ) , aweb :: get ( ) . to ( Self :: link_handler ) , ) . route ( Self :: unlink_path ( ) . as_str ( ) , aweb :: get ( ) . to ( Self :: unlink_handler ) , ) . route ( Self :: login_redirect_path ( ) . as_str ( ) , aweb :: get ( ) . to ( Self :: login_authenticated_handler ) , ) . route ( Self :: registration_redirect_path ( ) . as_str ( ) , aweb :: get ( ) . to ( Self :: registration_authenticated_handler ) , ) . route ( Self :: link_redirect_path ( ) . as_str ( ) , aweb :: get ( ) . to ( Self :: linking_authenticated_handler ) , ) ; }
Register the necessary actix services to support this identity
provider.
Register the necessary actix services to support this identity provider .
config
&mut ServiceConfig