mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-24 04:57:00 +01:00
Add some openid stubs (#464)
This commit is contained in:
parent
2493dad4fb
commit
7da4fa9d7e
|
@ -1040,6 +1040,14 @@ pub async fn status(req: tide::Request<AppState>) -> tide::Result {
|
||||||
Ok(res)
|
Ok(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For future openid integration
|
||||||
|
pub async fn get_openid_configuration(_req: tide::Request<AppState>) -> tide::Result {
|
||||||
|
let mut res = tide::Response::new(200);
|
||||||
|
res.set_content_type("text/html;charset=utf-8");
|
||||||
|
res.set_body("");
|
||||||
|
Ok(res)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// For openssl
|
// For openssl
|
||||||
struct TlsListener {
|
struct TlsListener {
|
||||||
|
@ -1166,6 +1174,8 @@ pub fn create_https_server(
|
||||||
bundy_handle,
|
bundy_handle,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// tide::log::with_level(tide::log::LevelFilter::Debug);
|
||||||
|
|
||||||
// Add middleware?
|
// Add middleware?
|
||||||
tserver.with(tide::log::LogMiddleware::new()).with(
|
tserver.with(tide::log::LogMiddleware::new()).with(
|
||||||
// We do not force a session ttl, because we validate this elsewhere in usage.
|
// We do not force a session ttl, because we validate this elsewhere in usage.
|
||||||
|
@ -1193,6 +1203,9 @@ pub fn create_https_server(
|
||||||
|
|
||||||
tserver.at("/status").get(self::status);
|
tserver.at("/status").get(self::status);
|
||||||
|
|
||||||
|
let mut well_known = tserver.at("/well-known");
|
||||||
|
well_known.at("/openid-configuration").get(get_openid_configuration);
|
||||||
|
|
||||||
let mut raw_route = tserver.at("/v1/raw");
|
let mut raw_route = tserver.at("/v1/raw");
|
||||||
raw_route.at("/create").post(create);
|
raw_route.at("/create").post(create);
|
||||||
raw_route.at("/modify").post(modify);
|
raw_route.at("/modify").post(modify);
|
||||||
|
|
Loading…
Reference in a new issue