Skip to content

Commit c07ee3d

Browse files
committed
update protos
1 parent 744a8da commit c07ee3d

5 files changed

Lines changed: 13 additions & 6 deletions

File tree

build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2828
.type_attribute(".", "#[derive(serde::Serialize,serde::Deserialize)]")
2929
// Compiling protos using path on build time.
3030
.compile_protos(
31-
&["proto/v2/proxy.proto", "proto/common/client_types.proto"],
31+
&[
32+
"proto/v2/proxy.proto",
33+
"proto/v2/common.proto",
34+
"proto/common/client_types.proto",
35+
],
3236
&["proto"],
3337
)?;
3438

src/enterprise/handlers/desktop_client_mfa.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ pub(super) async fn mfa_auth_callback(
8080
code: payload.code,
8181
nonce,
8282
state: payload.state,
83-
#[allow(deprecated)]
84-
callback_url: String::new(),
8583
};
8684

8785
debug!("Sending MFA OIDC authenticate request to core service");

src/enterprise/handlers/openid_login.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ async fn auth_callback(
164164
let request = AuthCallbackRequest {
165165
code: payload.code,
166166
nonce,
167-
#[allow(deprecated)]
168-
callback_url: String::new(),
169167
};
170168

171169
let rx = state

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ pub(crate) mod generated {
2424
}
2525
}
2626

27+
pub(crate) mod common {
28+
pub(crate) mod v2 {
29+
tonic::include_proto!("defguard.common.v2");
30+
}
31+
}
32+
2733
pub mod client_types {
2834
tonic::include_proto!("defguard.client_types");
2935
}
@@ -32,6 +38,7 @@ pub(crate) mod generated {
3238

3339
pub(crate) mod proto {
3440
pub(crate) use crate::generated::defguard::client_types::*;
41+
pub(crate) use crate::generated::defguard::common::v2::*;
3542
pub(crate) use crate::generated::defguard::proxy::v2::*;
3643
}
3744

0 commit comments

Comments
 (0)