mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Return consent scope to service account (#2605)
This commit is contained in:
parent
dbf59474bb
commit
633d11a21e
|
@ -854,6 +854,28 @@ pub static ref SCHEMA_CLASS_SERVICE_ACCOUNT_DL5: SchemaClass = SchemaClass {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub static ref SCHEMA_CLASS_SERVICE_ACCOUNT_DL6: SchemaClass = SchemaClass {
|
||||||
|
uuid: UUID_SCHEMA_CLASS_SERVICE_ACCOUNT,
|
||||||
|
name: EntryClass::ServiceAccount.into(),
|
||||||
|
description: "Object representation of service account".to_string(),
|
||||||
|
|
||||||
|
sync_allowed: true,
|
||||||
|
systemmay: vec![
|
||||||
|
Attribute::SshPublicKey.into(),
|
||||||
|
Attribute::UserAuthTokenSession.into(),
|
||||||
|
Attribute::OAuth2Session.into(),
|
||||||
|
Attribute::OAuth2ConsentScopeMap.into(),
|
||||||
|
Attribute::Description.into(),
|
||||||
|
|
||||||
|
Attribute::Mail.into(),
|
||||||
|
Attribute::PrimaryCredential.into(),
|
||||||
|
Attribute::JwsEs256PrivateKey.into(),
|
||||||
|
Attribute::ApiTokenSession.into(),
|
||||||
|
],
|
||||||
|
systemexcludes: vec![EntryClass::Person.into()],
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
|
|
||||||
pub static ref SCHEMA_CLASS_SYNC_ACCOUNT: SchemaClass = SchemaClass {
|
pub static ref SCHEMA_CLASS_SYNC_ACCOUNT: SchemaClass = SchemaClass {
|
||||||
uuid: UUID_SCHEMA_CLASS_SYNC_ACCOUNT,
|
uuid: UUID_SCHEMA_CLASS_SYNC_ACCOUNT,
|
||||||
name: EntryClass::SyncAccount.into(),
|
name: EntryClass::SyncAccount.into(),
|
||||||
|
|
|
@ -867,6 +867,7 @@ impl<'a> QueryServerWriteTransaction<'a> {
|
||||||
SCHEMA_ATTR_LIMIT_SEARCH_MAX_RESULTS_DL6.clone().into(),
|
SCHEMA_ATTR_LIMIT_SEARCH_MAX_RESULTS_DL6.clone().into(),
|
||||||
SCHEMA_ATTR_LIMIT_SEARCH_MAX_FILTER_TEST_DL6.clone().into(),
|
SCHEMA_ATTR_LIMIT_SEARCH_MAX_FILTER_TEST_DL6.clone().into(),
|
||||||
SCHEMA_CLASS_ACCOUNT_POLICY_DL6.clone().into(),
|
SCHEMA_CLASS_ACCOUNT_POLICY_DL6.clone().into(),
|
||||||
|
SCHEMA_CLASS_SERVICE_ACCOUNT_DL6.clone().into(),
|
||||||
];
|
];
|
||||||
|
|
||||||
idm_schema_classes
|
idm_schema_classes
|
||||||
|
|
Loading…
Reference in a new issue