logo
22.1
search
No matching documents found.
list
search
No matching documents found.
logo
Please be aware that there is newer version of documentation available for Webswing. Documentation 24.2

Restricted Resources

In some cases you want to host static pages alongside with your Swing Application in Webswing and leveraging the Webswing security integration. Most common example is documentation. With Restricted Resources feature you can share the same security setup to keep your documentation protected.

  1. Copy files you want to serve securely. For example to /webswing-examples-21.2/apps/WebswingDemo/webfolder/docs
  2. In Webswing Admin console create a new app called help.
  3. Set the Web Folder to point of your app ${webswing.rootDir}/apps/WebswingDemo/webfolder
  4. Set the Restricted Resources to "/docs"
  5. Now the help will be accessible only to authenticated users. Secured pages should be therefore referenced only from a Webswing served Swing Application.