Hi Rick,
I'm using HHB to create HTML docs for our new app. I'd like to put those pages behind my application user auth, as opposed to leaving it open. Do you have any examples that might show how to force a login before the HTML help can be accessed?
TIA
You can't really use Web Connection auth for static site content unless you make it part of your Web Connection application and you take over the .htm
extension (and any images etc.). IOW, the app would end up having to serve the static content.
+++ Rick ---
Thanks, Rick.
So does that mean adding something to the process method or simply adding the extension to the ini? I also assume some code would have to be added to the help content templates to track logged in state?
No you would probably create a custom wwProcess class to handle all .htm
page requests and intercept them then use ExpandTemplate()
or TransmitFile()
to display them. All you want to do is check for login, make sure you're logged in and if not redirect them back to the Login page.
In fact you'd probably just implement the OnProcessInit()
method in that handler, and let the default ExpandScript()
processing handle the display of all the pages.
+++ Rick ---
Thanks again! Forgive the N00B question but the best way to create a custom process class is to...
Run the wizard?
VB inheritance from an existing process prg and rip out the stuff I don't need?
A third way?
Yes run the DO Console
, then Create New Process Class and attach it to an existing application by pointing at the yourAppMain.prg
file of your app.
+++ Rick ---