fix: fix OIDC

This commit is contained in:
Ruben Fiszel
2024-06-28 00:43:38 +02:00
parent b9e68914db
commit 81c7edffea
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
e9917f62ebc48bdd93f9ddda5a58ba6ce8a74ed9
7c4d19b3d1ebc640e1b379bd76ce3dd71811af90
+1
View File
@@ -24,6 +24,7 @@ pub struct JWTAuthClaims {
pub label: Option<String>,
pub workspace_id: String,
pub exp: usize,
pub job_id: Option<String>,
}
#[derive(Deserialize)]
+1
View File
@@ -206,6 +206,7 @@ pub async fn create_token_for_owner(
workspace_id: w_id.to_string(),
exp: (chrono::Utc::now() + chrono::Duration::seconds(expires_in as i64)).timestamp()
as usize,
job_id: Some(job_id.to_string()),
};
let token = jsonwebtoken::encode(