@@ -38,7 +38,7 @@ up your application. It's the callback URL that {% data variables.product.produc
38
38
successful authentication.
39
39
40
40
Since we're running a regular Sinatra server, the location of the local instance
41
- is set to ` http://localhost :4567 ` . Let's fill in the callback URL as ` http://localhost :4567/callback ` .
41
+ is set to ` http://127.0.0.1 :4567 ` . Let's fill in the callback URL as ` http://127.0.0.1 :4567/callback ` .
42
42
43
43
## Accepting user authorization
44
44
@@ -91,7 +91,7 @@ Also, notice that the URL uses the `scope` query parameter to define the
91
91
[ scopes] [ oauth scopes ] requested by the application. For our application, we're
92
92
requesting ` user:email ` scope for reading private email addresses.
93
93
94
- Navigate your browser to ` http://localhost :4567 ` . After clicking on the link, you
94
+ Navigate your browser to ` http://127.0.0.1 :4567 ` . After clicking on the link, you
95
95
should be taken to {% data variables.product.product_name %}, and presented with a dialog that looks something like this:
96
96
![ GitHub's OAuth Prompt] ( /assets/images/oauth_prompt.png )
97
97
@@ -215,7 +215,7 @@ We can do whatever we want with our results. In this case, we'll just dump them
215
215
216
216
It'd be a pretty bad model if we required users to log into the app every single
217
217
time they needed to access the web page. For example, try navigating directly to
218
- ` http://localhost :4567/basic ` . You'll get an error.
218
+ ` http://127.0.0.1 :4567/basic ` . You'll get an error.
219
219
220
220
What if we could circumvent the entire
221
221
"click here" process, and just _ remember_ that, as long as the user's logged into
@@ -348,7 +348,7 @@ Next, create a file in _views_ called _advanced.erb_, and paste this markup into
348
348
349
349
From the command line, call ` ruby advanced_server.rb ` , which starts up your
350
350
server on port ` 4567 ` -- the same port we used when we had a simple Sinatra app.
351
- When you navigate to ` http://localhost :4567 ` , the app calls ` authenticate! `
351
+ When you navigate to ` http://127.0.0.1 :4567 ` , the app calls ` authenticate! `
352
352
which redirects you to ` /callback ` . ` /callback ` then sends us back to ` / ` ,
353
353
and since we've been authenticated, renders _ advanced.erb_ .
354
354
0 commit comments