Giter Club home page Giter Club logo

Comments (2)

mcarbonneaux avatar mcarbonneaux commented on July 25, 2024

Why you cannot ? more context needed to understand your problem

The authentification module dont do redirect, they return 401 error, is why you must customise 401 error page with apache errordocument.

Errordocument is like alias and dont do redirect and can use only local page served by apache.

https://httpd.apache.org/docs/2.4/en/custom-error.html

To use Dynamique page like PHP page your apache must be configured to serve PHP page with PHP.

Rise the log level of Apache understand why they do not do what they suposed to do.

from apache-authmemcookie-module.

Kojiro-Goto avatar Kojiro-Goto commented on July 25, 2024

@mcarbonneaux
Thank you for your comments.

I did a lot of things to investigate my problem.

  1. PHP configuration is correct. If 401 set as "/redirect.php" and this php just sent back 302 header, then works fine.
  2. Static html file is also works fine.

Only when I use simplesaml php auth memcookie module, it doesn't work expectedly.

And I found the issue that apache set the value of REQUEST_URI env original url.

When the location "/protected/" set for Auth Memcookie and set the ErrorDocument 401 in this location like below.
<Location /protected>
Auth_memCookie...
ErrorDocument 401 /redirect.php

When apache access to the redirect.php the value of REQUEST_URI is "/protected".
Simplesamlphp doesn't work if REQUEST_URI is not the same as the path set as 401.(like simplesaml/module.php/memcookie/auth.php)

The issue is related to simplesamlphp or simplesaml memcookie module so you can close this issue.

from apache-authmemcookie-module.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.