namespace _zeitbild.api { /** */ export function register_session_oidc( rest_subject : lib_plankton.rest.type_rest ) : void { register( rest_subject, lib_plankton.http.enum_method.delete, "/session/oidc", { "description": "verarbeitet einen OIDC login callback", "input_schema": () => ({ "type": "null", }), "output_schema": () => ({ "type": "null", }), "restriction": restriction_logged_in, "execution": async (stuff) => { // do NOT wait _zeitbild.auth.control( { "kind": "authorization_callback", "data": { "http_request": http_request } } ); return Promise.resolve({ "status_code": 200, "data": null, }); }, } ); } }