-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize POST preservation page #195
Comments
I haven't experienced this myself but I haven't done exhaustive testing either... Could you give a concrete example of the POST data that you send? Is it large and/or has many parameters? FWIW: the text should say "Preserving..." rather than "Redirecting..." can you confirm that? |
Ah yes you're right. There are two pages shown, one showing "preserving..." which doesn't take too long. This then gets switched to "restoring..." which is the page that takes the longest (nothing too bad, but definitely noticeable. I would say around 1 second). Example POST data (Django):
|
I'm not a Javascript expert but I don't see how this code: |
Could it be that it is just the handler/page that it POSTs to is actually slow (i.e. your code :-O) ? I do agree that a customizable screen would be a nice to have. |
It could be a possibility ;) Though I've noticed this over multiple pages and apps (though of course that doesn't say much). In any case customizable pages would be very nice! A speed improvement is not my main wish at this point, I was just wondering if there was a possibility this was somewhere related in mod_auth_openidc. |
Hi! We are looking for a way to customize the callback page that shows "Submitting...". Unfortunately we can not compile the code in order to rewrite the part that shows this page. Is there any option to reference a flat html that shows other content? Thank you! |
No, not at this point, that's what this enhancement issue is about. |
Yep, I see, are you thinking about it? Thanks! Regards |
Prioritizing it would require a commercial discussion. |
Ok! Thanks a lot :) Regards |
Bump, is there any new information about this? |
nope, PRs or funding are welcome... |
Hi all, Hi, let me propose a change like this to read from config file a path of an html/js taken from a path, instead of a hardcoded js: #include <http_config.h> /* oidc_debug(r, "enter"); oidc_cfg *cfg = ap_get_module_config(r->server->module_config, &auth_openidc_module); const char *method = oidc_original_request_method(r, cfg, FALSE); if (_oidc_strcmp(method, OIDC_METHOD_FORM_POST) != 0) /* Get the path to the JavaScript file from the configuration */ /* Open the JavaScript file */ /* Read the content of the JavaScript file */ /* Close the JavaScript file */ const char *jmethod = "preserveOnLoad"; if (location == NULL) { return TRUE; /* const char *javascript_file_path = cfg->javascript_file_path; if (!javascript_file_path || *javascript_file_path == '\0') { return ap_server_root_relative(r->pool, javascript_file_path); It seems quite simple to achive - what do you think? |
sure, please test and submit as a PR and we'll take it from there |
Currently when posting a form, an authentication request is being performed and the
OIDCPreservePost
option is enabled a (or actually a couple) blank screen is shown with the text "Redirecting...". This page gets shown relatively long. It would be great if this page could either take less long, be customizable so it fits in better with the rest of the site or be avoided all together.Any tips on how to go about this, or would this have to be implemented as a feature?
The text was updated successfully, but these errors were encountered: