Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added scopes example to docs #5

Merged
merged 2 commits into from

2 participants

@adelevie

The concept of Scopes in the GitHub API v3 isn't obvious, and should be included in the docs here.

@mbleigh mbleigh merged commit 717fdca into intridea:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 4, 2012
  1. @adelevie
  2. @adelevie
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -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.
Something went wrong with that request. Please try again.