From f2bbfcba1a6722a1e8c92713879b59ec93f2ce75 Mon Sep 17 00:00:00 2001 From: Aleksander <170264518+t-aleksander@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:26:05 +0100 Subject: [PATCH] cleanup --- src/grpc/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/grpc/mod.rs b/src/grpc/mod.rs index 25c69c6d2..4398c1fdb 100644 --- a/src/grpc/mod.rs +++ b/src/grpc/mod.rs @@ -10,10 +10,7 @@ use std::{ }; use chrono::{Duration as ChronoDuration, NaiveDateTime, Utc}; -use openidconnect::{ - core::{CoreAuthenticationFlow, CoreResponseType}, - AuthenticationFlow, AuthorizationCode, CsrfToken, Nonce, Scope, -}; +use openidconnect::{core::CoreAuthenticationFlow, AuthorizationCode, CsrfToken, Nonce, Scope}; use reqwest::Url; use serde::Serialize; #[cfg(feature = "worker")] @@ -545,7 +542,7 @@ pub async fn run_grpc_bidi_stream( } } Some(core_request::Payload::AuthInfo(request)) => { - if validate_license(get_cached_license().as_ref()).is_err() { + if !is_enterprise_enabled() { warn!("Enterprise license required"); Some(core_response::Payload::CoreError(CoreError { status_code: Code::FailedPrecondition as i32,