Moodle Plugins directory: LenAuth | Moodle.org
LenAuth
Authentication ::: auth_lenauth
Maintained by Igor Sazonov
LenAuth is a plugin for easy OAuth authorize methods via social networks: Facebook, Google, Yahoo, Twitter, VK, Yandex, Mail.Ru. Easy integrate methods to Moodle theme and a lot of settings.
Latest release:
84 sites
20 downloads
37 fans
Current versions available: 1
Just some steps to make easy authorize method: Configure social networks OAuth applications, setup plugin settings, select buttons skin, integrate code to your current Moodle theme.
Installation
1. upload plugin to /auth/lenauth
2, update Moodle with this new plugin
3. activate the plugin at Site administration -> Plugins -> Authentication -> Manage authentication
Plugin docs at Russian language (English docs link at "Useful links" block)
Contributors
Igor Sazonov (Lead maintainer)
Please login to view contributors details and/or to contact them
For an Academic Research, I'm trying to find a way to ask users permission to view their "facebook likes". Until now it seemed to understand that it must necessarily use Graph API.
This plugin could help me in any way?
thank you,
Ema
My Moodle version is 3.2.2+ (Build: 20170316). I got these errors when I created static HTML code:
Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result
line 490 of /lib/pagelib.php: call to debugging()
line 817 of /lib/pagelib.php: call to moodle_page->magic_get_context()
line 1435 of /lib/weblib.php: call to moodle_page->__get()
line 9 of /auth/lenauth/htmlcode.php: call to format_string()
( ! ) Warning: get_called_class() called from outside a class in /var/www/html/home/auth/lenauth/out.php on line 8
Call Stack
# Time Memory Function Location
1 0.0014 368120 {main} .../htmlcode.php:0
2 0.0403 2587552 include_once( '/var/www/html/home/auth/lenauth/out.php' ) .../htmlcode.php:12
3 0.0404 2587552 get_called_class .../out.php:8
I don't know how to fix it. Please help me. Thanks so much.
( ! ) Notice: Undefined index: id in /var/www/html/home/auth/lenauth/auth.php on line 779
Call Stack
# Time Memory Function Location
1 0.0037 369448 {main} .../index.php:0
2 0.0320 2309216 auth_plugin_lenauth->loginpage_hook .../index.php:90
( ! ) Notice: Undefined index: email in /var/www/html/home/auth/lenauth/auth.php on line 780
Call Stack
# Time Memory Function Location
1 0.0037 369448 {main} .../index.php:0
2 0.0320 2309216 auth_plugin_lenauth->loginpage_hook .../index.php:90
( ! ) Notice: Undefined index: first_name in /var/www/html/home/auth/lenauth/auth.php on line 781
Call Stack
# Time Memory Function Location
1 0.0037 369448 {main} .../index.php:0
2 0.0320 2309216 auth_plugin_lenauth->loginpage_hook .../index.php:90
( ! ) Notice: Undefined index: last_name in /var/www/html/home/auth/lenauth/auth.php on line 782
Call Stack
# Time Memory Function Location
1 0.0037 369448 {main} .../index.php:0
2 0.0320 2309216 auth_plugin_lenauth->loginpage_hook .../index.php:90
I went through the documentaton and set the plugin. But I am getting the following error. Can someone help
auth_lenauth/Can not get access for "access_token" or/and "expires" params after request
First, I want to thank you for the plugin. It's been great for quite a long time I've been using it. But this morning I got this message: "Can not get access for "access_token" or/and "expires" params after request".
On the website it's said "This error can occur. It means that the system wasn't able to receive access token from web service it is trying to connect". But nothing on how to deal with the issue.
Can you please help me out?
P.S. On the FB app dashboard I've found out that the app API 2.2 is expired, so I made a new app with API version 2.8, but it doesn't work.
Replace auth.php with new:
https://github.com/akuzn7a/moodle-auth_lenauth/blob/bcbb0e59f970181c1c5da5fd24eecc54340fb576/auth.php
There are a new version of this plugin? My Moodle version is 3.4.6.