Problem
In the Drupal administration section I get the following error message:
There is a Simplesamlphp configuration problem. The configuration is invalid: Setting secure cookie on plain HTTP is not allowed.
The SimpleSAMLphp configuration works and I have tested it with an Azure AD application.The only issue is that I get this message in Drupal admin section.
Just to give a little bit of context, the application is deployed on Openshift (Kubernetes) and it has HTTPS configure to work with the site.
However, I have read somewhere that Openshift might be allowing HTTPS communication for external access only while using HTTP for internal communication - not sure what it exactly means.
Comments
Comment #2
tsega commentedAfter much toiling I found the fix for the issue:
When simpleSAMLphp is setup behind a reverse proxy, similar to what the Openshift setup is like, you need to set the base URL of the application (not simpleSAMLphp admin tool but the actual Drupal site itself) in
config/config.phpfile from simpleSAMLphp.I add the following and it worked: (note: this piece of code is commented out in the config.php file so you will need to uncomment and set the correct value)
Comment #3
tsega commented