Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ strip = "debuginfo"
[workspace.dependencies]
ak-api-cli = { path = "ak-api-cli" }
ak-api-cli-gen = { path = "ak-api-cli-gen" }
authentik-client = { git = "https://github.com/goauthentik/client-rust", rev="24c227964b05ff1c3cc9487ccdd40751ac89f6b9", version = "2026.11.0-rc1" , default-features = false, features = ["rustls"] }
authentik-client = { git = "https://github.com/goauthentik/client-rust", version = "2026.11.0-rc1" , default-features = false, features = ["rustls"], rev = "24c227964b05ff1c3cc9487ccdd40751ac89f6b9" }
chrono = { version = "0.4.45", features = ["serde"] }
clap = { version = "4.6.1", features = ["derive"] }
color-eyre = "= 0.6.5"
Expand Down
19 changes: 12 additions & 7 deletions ak-platform/src/generated/sys_auth/sys_auth.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions ak-platform/src/generated/sys_auth/sys_auth.serde.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions ak-platform/src/generated/sys_auth/sys_auth.tonic.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ak-sysd/src/components/auth/interactive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,15 @@ async fn interactive_auth_continue(

pub async fn interactive_auth_async(
ctx: &SysdContext,
username: Option<String>,
) -> Result<InteractiveAuthAsyncResponse, Status> {
if !interactive_supported(ctx).await {
return Err(Status::unavailable(
"interactive authentication is not licensed for this domain",
));
}
let active = ctx.domains.active().await.map_err(to_status)?;
let ia = endpoints_agents_connectors_auth_ia_create(&active.api, None)
let ia = endpoints_agents_connectors_auth_ia_create(&active.api, username.as_deref())
.await
.map_err(|e| Status::internal(format!("failed to start interactive auth: {e}")))?;
Ok(InteractiveAuthAsyncResponse {
Expand Down
8 changes: 4 additions & 4 deletions ak-sysd/src/components/auth/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::components::{Component, SysdContext};
use ak_platform::generated::sys_auth::{
InteractiveAuthAsyncResponse, InteractiveAuthRequest, InteractiveChallenge,
SystemAuthorizeRequest, SystemAuthorizeResponse,
InteractiveAuthAsyncRequest, InteractiveAuthAsyncResponse, InteractiveAuthRequest,
InteractiveChallenge, SystemAuthorizeRequest, SystemAuthorizeResponse,
system_auth_authorize_server::{SystemAuthAuthorize, SystemAuthAuthorizeServer},
system_auth_interactive_server::{SystemAuthInteractive, SystemAuthInteractiveServer},
system_auth_token_server::SystemAuthTokenServer,
Expand Down Expand Up @@ -107,9 +107,9 @@ impl SystemAuthInteractive for AuthComponent {

async fn interactive_auth_async(
&self,
_request: Request<()>,
request: Request<InteractiveAuthAsyncRequest>,
) -> Result<Response<InteractiveAuthAsyncResponse>, Status> {
interactive::interactive_auth_async(&self.ctx)
interactive::interactive_auth_async(&self.ctx, request.into_inner().username)
.await
.map(Response::new)
}
Expand Down
29 changes: 14 additions & 15 deletions ee/psso/Bridge/Generated/sys_auth.grpc.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading