Edjet LMS support the OAuth standard that allow user to can sign in into Edjet LMS using third party services.
Supported identity providers:
OAuth setup require the Edjet LMS to use https protocol.
The user account being authenticated has to exist in the Edjet LMS database.
This setup require to configure server-side rewrite.
All other setting and options of the OAuth connector can be managed in the admin panel.
To setup OAuth authentication:
Setting | Options and description |
---|---|
google_client_id | Google client ID (generated in google API manager) |
google_client_secret | Google client secret (generated in google API manager) |
facebook_app_id | Facebook application ID (generated in facebook application manager) |
facebook_app_secret | Facebook application secret key (generated in facebook application manager) |
linkedin_api_key | LinkedIn client ID (generated in linkedIn application manager) |
linkedin_secret_key | LinkedIn secret key (generated in linkedIn application manager) |
To get credentials from 3rd party identity provider (IdP) to use them in OAuth authentication setup, you will need to have account of each identity provider you want to use.
Some providers do require specific account type (developer) and usually you need to verify your account before you can begin.
Documentation: https://developers.google.com/identity/protocols/oauth2
Notes:
https://<hostname>/login/google/oauth2callback
Documentation: https://developers.facebook.com/docs/apps/register
Notes:
https://<hostname>/login/facebook/int_callback
Documentation: https://docs.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow
Notes:
https://<hostname>/login/linkedin/oauth2callback
If you are using Edjet LMS in the cloud, please contact Edjet Support.
Add these rewrite rules as first rules to the .htaccess file:
RewriteRule ^login/google$ /login [L,QSA]
RewriteRule ^login/google/oauth2callback(.*)$ /login$1 [L,QSA]
RewriteRule ^login/facebook$ /login [L,QSA]
RewriteRule ^login/facebook/int_callback(.*)$ /login$1 [L,QSA]
RewriteRule ^login/linkedin$ /login [L,QSA]
RewriteRule ^login/linkedin/oauth2callback(.*)$ /login$1 [L,QSA]