Conversation
Allow AuthenticationSource to decide, in reauthenticate method, if user has to forcedly reauthenticate.
|
Hi! Again, what's the use case you are aiming for? In any case, you don't need new code to do this. If you want the auth source to force the user to authenticate again, it just needs to set I'm closing this for now, but of course comments are welcome. |
|
Hi, thanks for comments! The use case here is this: So the method redirect the user to a page (ie /simplesaml/module.php/authmodule/callback.php) that is "protected" by the access manager. once the user authenticate, the Access Manager let him access callback.php with username and attributes in http headers that can be consumed by the module. When user has already a session, I also want to check session against Access Manager, that is, from ssp stand point, it is actually a reauthentication (going through callback.php again). I did added "as:Reauth" because i was thinking that, when user has a valid session against simplesamlphp, the framework calls only reauthenticate(). So from an authentication module stand point, there where no other places to "comunicate" to framework to do a reauthentication, Moreover "ForceAuthn" is evaluated before calling reauthenticate(), and it is something related to the request, not actually an internal need of the IDP to manage authentication. So where i need to set $state['ForceAuthn'] = true in the authentication module to get the same behavior? |
|
So, if I understand correctly, what you want is to ignore SSP's session (as in not having SSO) and leave that to the Access Manager, right? You are right about public function reauthenticate(array &$state)
{
// always reauthenticate => we want to always go through secure reverse proxy to get HTTP headers
$this->authenticate($state);
} |
|
Yes, that is my objective. I didn't take in account that solution because internally SSP goes through |
|
Well, it's not completely equivalent, you need to take a look at the code and consider if you need anything from the code that won't be run in your case. For example, any of the information added by to the state array by So it really depends on what you need, but in general, it should be possible to tackle this in your own code without much trouble. |
|
Ok. But if it is not a real and complete reauthentication, don't you think that giving the ability to an authentication module to restart an authentication is a feature that increases flexibility? More generally, SP has its opportunity to force reauthentication via |
Allow AuthenticationSource to decide, in reauthenticate method, if user has to forcedly reauthenticate.
I don't know it "as:" prefix is correct. If the feature is considered interesting, let's suggest the correct one.