mirror of
https://github.com/elyby/omniauth-ely.git
synced 2024-11-08 21:52:25 +05:30
27 lines
591 B
Markdown
27 lines
591 B
Markdown
|
# OmniAuth Ely.by
|
||
|
|
||
|
This is the official OmniAuth strategy for authenticating to Ely.by. To
|
||
|
use it, you'll need to sign up for an OAuth2 Application ID and Secret
|
||
|
on the [Ely.by Account Applications Page](#).
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Add the strategy to your `Gemfile` alongside OmniAuth:
|
||
|
|
||
|
```ruby
|
||
|
gem 'omniauth'
|
||
|
gem 'omniauth-ely'
|
||
|
```
|
||
|
|
||
|
Integrate this strategy to your OmniAuth middleware.
|
||
|
|
||
|
```ruby
|
||
|
use OmniAuth::Builder do
|
||
|
provider :ely, 'application_id', 'secret'
|
||
|
end
|
||
|
```
|
||
|
|
||
|
You need to add your key and secret.
|
||
|
|
||
|
For more information check the [OmniAuth wiki](https://github.com/intridea/omniauth/wiki).
|