Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Nov 15, 2024
1 parent 78a5c66 commit f2bbfcb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/grpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f2bbfcb

Please sign in to comment.