asmecher / subscriptionSSO

Subscription SSO (single-sign-on) plugin for OJS.
GNU General Public License v3.0
4 stars 7 forks source link

Allow requests for one second on verify request. Usefull when hoursVa… #9

Closed marcoblancas closed 2 years ago

marcoblancas commented 2 years ago

Hi @asmecher, this is a first approach with a minimal change.

I have added one fixed second because in other case some times it works and others it launch the redirect.

I'm not sure if the 1 fixed second should be a new parameter in the settings in order an administrator to be able to custom extra seconds for congested systems, but this would require new translations.

I worked in other other approach setting a new $_SESSION['subscriptionSSOVerified'] in the loadHandlerCallback to be evaluated in subscribedUserCallback but the redirectUrl was requested twice when downloading one pdf file.

asmecher commented 2 years ago

Thanks, @marcoblancas, that's definitely a minimal change!