Skip to content

Commit 2b36d50

Browse files
authored
Add description to ID token (#1234)
1 parent dcdf68b commit 2b36d50

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crates/common/src/auth/oauth/oidc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ pub struct StandardClaims {
9292
#[serde(skip_serializing_if = "Option::is_none")]
9393
#[serde(default)]
9494
pub email: Option<String>,
95+
96+
#[serde(skip_serializing_if = "Option::is_none")]
97+
#[serde(default)]
98+
pub description: Option<String>,
9599
}
96100

97101
impl Server {

crates/http/src/auth/oauth/token.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ impl TokenHandler for Server {
329329
nonce,
330330
preferred_username: access_token.name.clone().into(),
331331
email: access_token.emails.first().cloned(),
332+
description: access_token.description.clone().into(),
332333
},
333334
) {
334335
Ok(id_token) => Some(id_token),

0 commit comments

Comments
 (0)