mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
fix: fix OIDC
This commit is contained in:
@@ -1 +1 @@
|
||||
e9917f62ebc48bdd93f9ddda5a58ba6ce8a74ed9
|
||||
7c4d19b3d1ebc640e1b379bd76ce3dd71811af90
|
||||
@@ -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)]
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user