Add skipRenewConfirmation parameter (#1422)
This commit is contained in:
parent
25470344ef
commit
a994024cf7
|
@ -3083,6 +3083,9 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
|
||||||
'default' => 0,
|
'default' => 0,
|
||||||
'type' => 'bool'
|
'type' => 'bool'
|
||||||
},
|
},
|
||||||
|
'skipRenewConfirmation' => {
|
||||||
|
'type' => 'bool'
|
||||||
|
},
|
||||||
'slaveAuthnLevel' => {
|
'slaveAuthnLevel' => {
|
||||||
'default' => 2,
|
'default' => 2,
|
||||||
'type' => 'int'
|
'type' => 'int'
|
||||||
|
|
|
@ -369,13 +369,18 @@ sub attributes {
|
||||||
documentation => 'Enable StayConnected plugin',
|
documentation => 'Enable StayConnected plugin',
|
||||||
},
|
},
|
||||||
checkState => {
|
checkState => {
|
||||||
type => 'bool',
|
type => 'bool',
|
||||||
documentation => 'Enable CheckState plugin',
|
documentation => 'Enable CheckState plugin',
|
||||||
},
|
},
|
||||||
checkStateSecret => {
|
checkStateSecret => {
|
||||||
type => 'text',
|
type => 'text',
|
||||||
documentation => 'Secret token for CheckState plugin',
|
documentation => 'Secret token for CheckState plugin',
|
||||||
},
|
},
|
||||||
|
skipRenewConfirmation => {
|
||||||
|
type => 'bool',
|
||||||
|
documentation =>
|
||||||
|
'Avoid asking confirmation when an Issuer asks to renew auth',
|
||||||
|
},
|
||||||
|
|
||||||
# Loggers (ini only)
|
# Loggers (ini only)
|
||||||
logLevel => {
|
logLevel => {
|
||||||
|
|
|
@ -157,14 +157,17 @@ sub restoreRequest {
|
||||||
|
|
||||||
sub reAuth {
|
sub reAuth {
|
||||||
my ( $self, $req ) = @_;
|
my ( $self, $req ) = @_;
|
||||||
$req->datas->{_url} = encode_base64(
|
my $url =
|
||||||
$self->conf->{portal}
|
$self->conf->{portal}
|
||||||
. $req->path_info
|
. $req->path_info
|
||||||
. '?issuerRequest'
|
. '?issuerRequest'
|
||||||
. $self->path . '='
|
. $self->path . '='
|
||||||
. $self->storeRequest($req),
|
. $self->storeRequest($req);
|
||||||
''
|
if ( $self->conf->{skipRenewConfirmation} ) {
|
||||||
);
|
$req->response( [ 302, [ Location => $url ], [] ] );
|
||||||
|
return PE_SENDRESPONSE;
|
||||||
|
}
|
||||||
|
$req->datas->{_url} = encode_base64( $url, '' );
|
||||||
return PE_RENEWSESSION;
|
return PE_RENEWSESSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user