Differences

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

Link to this comparison view

Both sides previous revision Previous revision
blocks:server:form_authentication [2022-12-13 13:12]
admin
blocks:server:form_authentication [2023-04-06 17:45] (current)
admin Added requireHttps: false with notes
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: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. +First of all, stop the server and then follow [[blocks:server:nginx|this guide]] to set up blocks with a https certificate. Then apply the following settings for the //server// top level item in [[blocks:server_configuration_file|Blocks configuration file]]
  
-:!: **IMPORTANT**: There's an indent of two spaces for the //auth// item, so it becomes nested under your //server// item.+:!: **IMPORTANT**: Pay attention to the indentation under the //server// item, as shown below.
  
 <code> <code>
 +server:
 +  type: pixilab_server
 +  requireHttps: false
 +  # The line above is appropriate when using nginx in front of Blocks, managing the SSL connection.
 +  # If you manage SSL and certificate directly from within Blocks, set requireHttps to true instead, and
 +  # configure certificate as appropriate for Blocks.
   auth:   auth:
     servlet:     servlet: