Skip to main content

tuwunel_api/oidc/
jwks.rs

1use axum::{Json, extract::State, response::IntoResponse};
2use tuwunel_core::Result;
3
4pub(crate) async fn jwks_route(
5	State(services): State<crate::State>,
6) -> Result<impl IntoResponse> {
7	let oidc = services.oauth.get_server()?;
8
9	Ok(Json(oidc.jwks()))
10}