Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fakenine committed Sep 18, 2015
1 parent bddd7ed commit 95afe09
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ gem 'omniauth-marvin', github: "fakenine/omniauth-marvin"

## Usage

TODO: Write usage instructions here
Register your application on 42's intranet to receive an API Key.

Here's an example for adding the middleware to a Rails app in `config/initializers/omniauth.rb`

```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :marvin, ENV["42_ID"], ENV["42_SECRET"]
end
```

You can now access the OmniAuth 42 OAuth2 URL: `/auth/marvin`

## Licence

Expand Down

0 comments on commit 95afe09

Please sign in to comment.