Differences

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

Link to this comparison view

Next revision
Previous revision
blocks:server:form_authentication [2019-08-19 12:25]
mattias created
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: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 apply the following settings for the //server// top level item in [[blocks:server_configuration_file|Blocks configuration file]].  
 + 
 +:!: **IMPORTANT**: Pay attention to the indentation under the //server// item, as shown below.
  
-Then add the following lines in the server config.yml file.  
 <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: