Commit Graph

24 Commits (master)

Author SHA1 Message Date
Michael Große 09623faa23 Store and reload entire $_REQUEST 8 years ago
Michael Große c29c7913bb Save page only if there is text to be saved
Occasionally a page was deleted, i.e. saved with no text, upon relogin
forced by oauth. It is unclear how this was caused, but this fix should
prevent the deletion and show the page before editing to the user.
8 years ago
Michael Große 3c0c1b1491 Make getValidDomains more consistent and intuitive 8 years ago
Michael Große ebf681d124 Use more existing functions 8 years ago
Michael Große d9818adb55 Allow mailRestriction to multiple domains 8 years ago
Michael Große 5b21b630cd Make the restriction apply to all oauth domains 8 years ago
Michael Große 16bf2f009d Do not use hd and only check user afterwards
Add error message for denied login.
8 years ago
Michael Große 213f4618bb Relogin if session is lost or auth_sec_timeout
If the session is lost, possibly to bad server configuration, try a
silent relogin, if an cookie is present that indicates an oauth-session.

If auth_security_timeout is triggered try to re-login based on the
existing session data.

In both cases: Mostly correctly re-set the prvious state after re-login.
Some actions do not work as expected, e.g. pagination in old revisions.

It was decided not to use refresh-tokens. The desired functionality can be achieved by an online-relogin just as
good. Hence this should be prefered to the more user-security invasive
refresh-token mechanism.
8 years ago
Michael Große 4304ef94e6 Change default value from 'AllowAll' to '' 9 years ago
Michael Große f7ff0916cf Change login-button according to SingleLogin value 9 years ago
Michael Große 5c5c353e52 Redirect immedieatly, if chosen single Service login 9 years ago
Michael Große 68226e8ef5 Fix getting conf 9 years ago
Michael Große d487d93d74 in_array is enough 9 years ago
Michael Große cc378055e6 fix whitespace 9 years ago
Michael Große 081812bf96 Add option to limit possible login services
As requested in issue 10, add an option to only allow a single external
Service for login, while also deactivating authentication against local
database.
9 years ago
Andreas Gohr f563d9195c disable profileconfirm option automatically 9 years ago
Andreas Gohr 2e94f0b8bf store no information in the redirect URL
Some providers need an exact matching redirect URL configured (Google)
so we can not keep any dynamic info in the URL. Instead we store it in
the user's session.
9 years ago
Andreas Gohr 3c0138db63 Allow logins to existing accounts only with associated accounts
To prevent people can log into existing account with a newly created
social account with a forged email address. We only allow logins with
previously approved service providers.

When a user logs in for the first time, eg. the email does not exists,
then the user is created and the social account is approved
automatically.
9 years ago
Andreas Gohr 1025aad7dc some smaller adjustments 9 years ago
Andreas Gohr 11606ec129 added services to login form 9 years ago
Andreas Gohr d0c4ac9ad0 handle action only when plugin is set as auth type 9 years ago
Andreas Gohr a7a8f46af5 remember oAuth logins in session 9 years ago
Andreas Gohr f10e09e297 first go at the real auth plugin and new Service classes 9 years ago
Andreas Gohr 80852c1514 initial wizard generated checkin 9 years ago