We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bddd7ed commit 95afe09Copy full SHA for 95afe09
README.md
@@ -12,7 +12,17 @@ gem 'omniauth-marvin', github: "fakenine/omniauth-marvin"
12
13
## Usage
14
15
-TODO: Write usage instructions here
+Register your application on 42's intranet to receive an API Key.
16
+
17
+Here's an example for adding the middleware to a Rails app in `config/initializers/omniauth.rb`
18
19
+```ruby
20
+Rails.application.config.middleware.use OmniAuth::Builder do
21
+ provider :marvin, ENV["42_ID"], ENV["42_SECRET"]
22
+end
23
+```
24
25
+You can now access the OmniAuth 42 OAuth2 URL: `/auth/marvin`
26
27
## Licence
28
0 commit comments