Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting Zitadel-rust project in sub crates #592

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Next Next commit
Add custom_claims fields, as catch-all to support any zitadel custom …
…claims, a user could set using Action
fcenedese committed Jan 31, 2025
commit 6fa60eecc77e5d59d15dd54597c0716c28b95d64
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -147,7 +147,7 @@ proto_full = ["zitadel-action-v1","zitadel-admin-v1","zitadel-app-v1","zitadel-a
actix-web = { version = "4.5.1", optional = true }
async-trait = { version = "0.1.80", optional = true }
axum = { version = "0.8.0", optional = true, features = ["macros"] }
axum-extra = { version = "0.11.0", optional = true, features = ["typed-header"] }
axum-extra = { version = "0.10.0", optional = true, features = ["typed-header"] } #0.11.0 is yanked
base64-compat = { version = "1", optional = true }
custom_error = "1.9.2"
document-features = { version = "0.2.8", optional = true }
4 changes: 3 additions & 1 deletion src/oidc/introspection/mod.rs
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::error::Error;
use std::fmt::{Debug, Display};

use serde_json::Value as JsonValue;
use crate::credentials::{Application, ApplicationError};

#[cfg(feature = "introspection_cache")]
@@ -86,6 +86,8 @@ pub struct ZitadelIntrospectionExtraTokenFields {
pub project_roles: Option<HashMap<String, HashMap<String, String>>>,
#[serde(rename = "urn:zitadel:iam:user:metadata")]
pub metadata: Option<HashMap<String, String>>,
#[serde(flatten)]
custom_claims: HashMap<String, JsonValue>
}

impl ExtraTokenFields for ZitadelIntrospectionExtraTokenFields {}