Skip to content

Commit 267f54b

Browse files
udate readme for rails usage
Looking to address issue `https://github.com/omniauth/omniauth-github/issues/91`
1 parent d001ed2 commit 267f54b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ use OmniAuth::Builder do
2020
end
2121
```
2222

23+
24+
## Basic Usage Rails
25+
26+
In `config/initializers/github.rb`
27+
28+
```ruby
29+
Rails.application.config.middleware.use OmniAuth::Builder do
30+
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
31+
end
32+
```
33+
34+
2335
## Github Enterprise Usage
2436

2537
```ruby

0 commit comments

Comments
 (0)