diff --git a/services/identity/src/constants.rs b/services/identity/src/constants.rs --- a/services/identity/src/constants.rs +++ b/services/identity/src/constants.rs @@ -299,7 +299,8 @@ // Minimum supported code versions -pub const MIN_SUPPORTED_NATIVE_VERSION: u64 = 270; +pub const MIN_SUPPORTED_NATIVE_VERSION: u64 = 401; +pub const MIN_SUPPORTED_WEB_VERSION: u64 = 120; // Request metadata diff --git a/services/identity/src/grpc_services/shared.rs b/services/identity/src/grpc_services/shared.rs --- a/services/identity/src/grpc_services/shared.rs +++ b/services/identity/src/grpc_services/shared.rs @@ -4,6 +4,7 @@ use crate::constants::{ request_metadata, tonic_status_messages, MIN_SUPPORTED_NATIVE_VERSION, + MIN_SUPPORTED_WEB_VERSION, }; pub use grpc_clients::identity::shared::PlatformMetadata; @@ -18,6 +19,14 @@ { Err(unsupported_version()) } + Some((version, platform)) + if (platform == "web" + || platform == "windows" + || platform == "mac_os") + && version < MIN_SUPPORTED_WEB_VERSION => + { + Err(unsupported_version()) + } _ => Ok(req), } }