mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-10-09 03:55:45 +08:00
Add description to ID token (#1234)
This commit is contained in:
parent
dcdf68b774
commit
2b36d50c59
2 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,10 @@ pub struct StandardClaims {
|
|||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub email: Option<String>,
|
||||
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub description: Option<String>,
|
||||
}
|
||||
|
||||
impl Server {
|
||||
|
|
|
@ -329,6 +329,7 @@ impl TokenHandler for Server {
|
|||
nonce,
|
||||
preferred_username: access_token.name.clone().into(),
|
||||
email: access_token.emails.first().cloned(),
|
||||
description: access_token.description.clone().into(),
|
||||
},
|
||||
) {
|
||||
Ok(id_token) => Some(id_token),
|
||||
|
|
Loading…
Add table
Reference in a new issue