logo
20.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 a 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-20.1/apps/docs
  2. In Webswing Admin console create a new app called help.
  3. Set the Web Folder to point to your files ${webswing.rootDir}/apps/docs
  4. Set the Restricted Resources to "/"
  5. Enable the application
  6. Now the help will be accessible only to authenticated users. Secured pages should be therefore referenced only from a Webswing served Swing Application.