Skip to content
Draft
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
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### Unreleased

- Add `trust_level` attribute to `Attribute`

### 0.0.15

- Updates dependencies
Expand Down
2 changes: 2 additions & 0 deletions src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ pub struct Attribute {
pub name_format: Option<String>,
#[serde(rename = "AttributeValue", default)]
pub values: Vec<AttributeValue>,
#[serde(rename = "@TrustLevel")]
pub trust_level: Option<String>,
}

impl Attribute {
Expand Down
1 change: 1 addition & 0 deletions src/idp/response_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ fn build_attributes(formats_names_values: &[ResponseAttribute]) -> Vec<Attribute
attribute_type: Some("xs:string".to_string()),
value: Some(attr.value.to_string()),
}],
trust_level: None,
})
.collect()
}
Expand Down