Enable Password Protection
You can enable password protection from the Security section in School Settings.
This will temporarily restrict access to your site by setting a global password. Users must enter this password before viewing your site or logging in.
This feature is ideal for:
- Pre-launch or private institutions
- Testing environments
- Exclusive cohorts or invite-only batches
How to embed password-protected website inside another app externally?
You might want to password protect your website and embed it externally in a different app. To do that, you must set a JWT as a cookie namedwebsite-password. For example, let us assume your website is lms.example.com which uses Fermion. In order to securely access it from an external app, do the following:
- Enable password on the website (assume you set password to be
123456) - Make a secure HTTPS request to
request-password-enabled-website-accessAPI endpoint to get a unique embed cookie. This will return you a string that you must use as a cookie. Learn more about calling this API here: https://docs.fermion.app/api-reference/misc/request-password-enabled-website-access - Embed the website in a webview/iframe in your external app
- Set the cookie
website-passwordto have the value of the JWT returned by the API above.
