Skip to content

Commit af8d0f0

Browse files
committed
Merge pull request github#228 from github/tweak-basics-of-authentication-guide
Tweak basics of authentication guide
2 parents ff5d702 + 6f2833b commit af8d0f0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

content/guides/basics-of-authentication.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ into our Sinatra app. On top of that, we're going to be using a middleware calle
128128
[sinatra-auth-github][sinatra auth github] (which was written by a GitHubber).
129129
This will make authentication transparent to the user.
130130

131-
After you run `gem install sinatra_auth_github`, create a file called _advanced_server.rb_,
131+
After you run `gem install sinatra_auth_github`, create a file called _advanced_server.rb_,
132132
and paste these lines into it:
133133

134134
require 'sinatra/auth/github'
@@ -184,9 +184,9 @@ and paste these lines into it:
184184

185185
Much of the code should look familiar. For example, we're still using `RestClient.get`
186186
to call out to the GitHub API, and we're still passing our results to be renderend
187-
in an ERB template (this time, it's called `advanced`). Some of the other details--
188-
like turning our app into a class that inherits from `Sinatra::Base`, are a result
189-
of inheriting from `sinatra/auth/github`, which written as [a Sinatra extension][sinatra extension].
187+
in an ERB template (this time, it's called `advanced.erb`). Some of the other
188+
details--like turning our app into a class that inherits from `Sinatra::Base`--are a result
189+
of inheriting from `sinatra/auth/github`, which is written as [a Sinatra extension][sinatra extension].
190190

191191
Also, we now have a `github_user` object, which comes from `sinatra-auth-github`. The
192192
`token` key represents the same `access_token` we used during our simple server.
@@ -231,7 +231,7 @@ Also, if we had never authorized this Rack application to access our GitHub data
231231
we would've seen the same confirmation dialog from earlier pop-up and warn us.
232232

233233
If you'd like, you can play around with [yet another Sinatra-GitHub auth example][sinatra auth github test]
234-
available as a seperate project.
234+
available as a separate project.
235235

236236
[webflow]: http://developer.github.com/v3/oauth/#web-application-flow
237237
[Sinatra]: http://www.sinatrarb.com/

0 commit comments

Comments
 (0)