Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
blocks:server:form_authentication [2021-04-23 15:19] admin Made two spaces indent notice more noticeable |
blocks:server:form_authentication [2022-12-13 13:12] admin |
The default authentication method of blocks is internalDigest, which doesn't support logout. Sometimes projects may call for a slightly more sophisticated method of authentication. This article describes how to set up blocks with the form authentication method. | The default authentication method of blocks is internalDigest, which doesn't support logout. Sometimes projects may call for a slightly more sophisticated method of authentication. This article describes how to set up blocks with the form authentication method. |
| |
First of all, stop the server and then follow [[blocks:server:https|this guide]] to set up blocks with a https certificate and set the //requireHttps// option to true to enfoce a secure connection for logging in. Then add the following lines inside the //server// top level server item in the configuration (YML) file. | First of all, stop the server and then follow [[blocks:server:nginx|this guide]] to set up blocks with a https certificate. Then add the following lines inside the //server// top level server item in the configuration (YML) file. |
| |
:!: **IMPORTANT**: There's an indent of two spaces for the //auth// item, so it becomes nested under your //server// item. | :!: **IMPORTANT**: There's an indent of two spaces for the //auth// item, so it becomes nested under your //server// item. |