Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mconf/omniauth-moodle
https://github.com/mconf/omniauth-moodle
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mconf/omniauth-moodle
- Owner: mconf
- License: mit
- Created: 2016-04-15T15:19:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-20T19:35:24.000Z (over 8 years ago)
- Last Synced: 2024-04-12T16:08:47.594Z (9 months ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
OmniAuth Moodle
====================Implements support for the Moodle [Local Auth plugin](https://github.com/cognitivabrasil/moodle-local_oauth) as an Omniauth provider.
## Example usage
First follow the instructions on the [Moodle Local Auth's README](https://github.com/cognitivabrasil/moodle-local_oauth#instalation-steps) and create a client to get the token and secret for your application from inside your moodle installation.
### Using Ruby on Rails
In `config/initializers/omniauth.rb`:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :moodle, 'mconf_web', 'cad8465a05e6174c2ec4f8df6a532fce0ef05eb6402fe85c',
scope: 'user_info', site: 'http://yourmoodlewebsite.com'end
Continue integrating it with Devise or any other authentication system following [the instructions](https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview) in Omniauth's Wiki.