@@ -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).
129129This 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_ ,
132132and paste these lines into it:
133133
134134 require 'sinatra/auth/github'
@@ -184,9 +184,9 @@ and paste these lines into it:
184184
185185Much of the code should look familiar. For example, we're still using ` RestClient.get `
186186to 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
191191Also, 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
231231we would've seen the same confirmation dialog from earlier pop-up and warn us.
232232
233233If 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