Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
blocks:server:form_authentication [2021-03-16 11:54]
admin Clarified where to add the auth clause
blocks:server:form_authentication [2022-12-13 13:12]
admin
Line 3: Line 3:
 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. +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.
  
-Then add the following lines inside the //server// top level server item in the configuration (YML) file. Note that there's an indent of two spaces for the //auth// item, so it becomes nested under your server item. 
 <code> <code>
   auth:   auth: