Dmitrii Metelkin
ac66abbd21
Fix error when page url is not set
2019-11-16 23:20:22 +11:00
Jorge Humberto Sanchez Jimenez
e847890304
Fixes when session already exist
...
When loggin in, if session already exist, the login is attached to the
old user/session.
Logout if current session userid doesn't match with loginurl key userid
and retry the login.
2019-11-16 22:10:48 +11:00
Stephen Hellauer
8127ab82a9
Added confirmed equal 1 to user creation
2018-04-27 12:59:34 -05:00
Andrew Hancox
4afc2055be
Move settings into settings.php
2018-01-23 15:29:50 +00:00
Andrew Hancox
bb426a5adb
Prevent error where user is already logged in
2018-01-22 22:16:36 +00:00
Andrew Hancox
833a25daf3
Fixed issues from code review
2017-10-03 18:03:02 +01:00
Andrew Hancox
5171723d0e
Fix pre-existing travis CI failures
2017-10-03 11:40:36 +01:00
Andrew Hancox
bded162058
Add ability to white list IP addresses to ignore iprestrictions
2017-10-03 11:05:40 +01:00
Andrew Hancox
9ec87b0e87
Removed dependency on Moodle 31
2017-04-03 09:32:35 +01:00
Andrew Hancox
c1624f7d05
Fixed codechecker issues
2017-04-03 09:15:38 +01:00
Andrew Hancox
805e22e8e0
Make additional user information optional unless creating a new user.
2017-03-31 13:37:46 +01:00
Andrew Hancox
b08d113e0c
Add user provisioning.
2017-03-31 11:55:52 +01:00
Dmitrii Metelkin
35bec6b695
Use redirect function in user_login_userkey
2016-09-26 12:06:59 +10:00
Dmitrii Metelkin
1d380d8aed
Refactor hooks and modify related tests
2016-09-26 11:48:14 +10:00
Dmitrii Metelkin
b7cd70f1ea
Add ssourl validation
2016-09-26 10:45:40 +10:00
Matt Porritt
68f7634066
Add functionality to stop users from reaching the regular Moodle login page.
...
This function forces users who try to access Moodle directly to be redirected to the "SSO Host". The functionality is enabled by setting a SSO redirect URl in the plugins admin settings
The forced redirect can be overridden by using the query param "enrolkey_skipsso=on"
2016-09-26 09:51:52 +10:00
Dmitrii Metelkin
777575db8e
Refactor auth class
2016-08-27 21:19:58 +10:00
Dmitrii Metelkin
336cd2862b
Update auth pligin to use a new key manager interface
2016-08-27 15:59:25 +10:00
Dmitrii Metelkin
6a85c04826
Fix #1 when redirecting to server root, not a moodle root
2016-08-27 14:50:53 +10:00
Dmitrii Metelkin
c84216c6f8
Fix ip restriction functionality
2016-08-19 16:01:08 +10:00
Dmitrii Metelkin
44170b76db
Fix incorrect class doc
2016-08-19 13:03:55 +10:00
Dmitrii Metelkin
bf41c01c12
Refactor logoutpage_hook function
2016-08-19 12:13:47 +10:00
Dmitrii Metelkin
5de0871171
Add logout redirection functionality
2016-08-19 11:54:39 +10:00
Dmitrii Metelkin
b46edb61a9
Delete a user key just after we found it
2016-08-19 11:45:41 +10:00
Dmitrii Metelkin
8e1ecdb7b6
Move key lifetime error to the string file
2016-08-19 10:53:36 +10:00
Dmitrii Metelkin
56a1728b1a
Add redirect URL to a config form
2016-08-19 10:49:38 +10:00
Dmitrii Metelkin
be13e8b069
Fix coing style issues
2016-08-18 23:30:58 +10:00
Dmitrii Metelkin
a3fa1f0254
Change user_login_userkey() to return redirect URL
2016-08-18 22:56:53 +10:00
Dmitrii Metelkin
92555b7d28
Implement login functionality
2016-08-18 16:10:18 +10:00
Dmitrii Metelkin
29d61cad41
Add settings
2016-08-18 14:43:57 +10:00
Dmitrii Metelkin
e698304f80
Refactor generation of request_login_url_parameters
2016-08-17 16:43:35 +10:00
Dmitrii Metelkin
dfae36ad51
Some clean up in auth.php
2016-08-17 16:03:19 +10:00
Dmitrii Metelkin
7d25db3fda
WIP: add initital test and implementation get_login_url
2016-08-17 15:06:46 +10:00
Dmitrii Metelkin
3c8363d184
Add initial auth plugin class
2016-08-16 14:46:33 +10:00