fix: oidc token generation endpoint GET -> POST

This commit is contained in:
Ruben Fiszel
2024-01-17 11:15:39 +01:00
parent 4017b0d6b7
commit 3119830062
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ impl AdditionalClaims for JobClaim {}
use crate::db::DB;
use axum::extract::Path;
use axum::routing::get;
use axum::routing::{get, post};
use axum::Extension;
use axum::{Json, Router};
use serde::{Deserialize, Serialize};
@@ -35,7 +35,7 @@ pub fn global_service() -> Router {
Router::new()
.route(
"/.well-known/openid-configuration",
get(openid_configuration),
post(openid_configuration),
)
.route("/jwks", get(jwks))
}
+1 -1
View File
@@ -220,7 +220,7 @@ class Windmill:
return self.get(f"/w/{self.workspace}/jobs_u/get/{job_id}").json()
def get_id_token(self, audience: str) -> dict:
return self.get(f"/w/{self.workspace}/oidc/token/{audience}").text
return self.post(f"/w/{self.workspace}/oidc/token/{audience}").text
def get_job_status(self, job_id: str) -> JobStatus:
job = self.get_job(job_id)