Added scopes example to docs #5

Merged
merged 2 commits into from Feb 4, 2012
Jump to file or symbol
Failed to load files and symbols.
+10 −0
Split
View
@@ -10,6 +10,16 @@ on the [GitHub Applications Page](https://github.com/account/applications).
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
end
+### Scopes
+
+GitHub API v3 lets you set scopes to provide granular access to different types of data:
+
+ use OmniAuth::Builder do
+ provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], scope: "user,repo,gist"
+ end
+
+More info on [Scopes](http://developer.github.com/v3/oauth/#scopes).
+
## License
Copyright (c) 2011 Michael Bleigh and Intridea, Inc.