@@ -38,7 +38,7 @@ up your application. It's the callback URL that {% data variables.product.produc
3838successful authentication.
3939
4040Since 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 ` .
4242
4343## Accepting user authorization
4444
@@ -91,7 +91,7 @@ Also, notice that the URL uses the `scope` query parameter to define the
9191[ scopes] [ oauth scopes ] requested by the application. For our application, we're
9292requesting ` user:email ` scope for reading private email addresses.
9393
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
9595should be taken to {% data variables.product.product_name %}, and presented with a dialog that looks something like this:
9696![ GitHub's OAuth Prompt] ( /assets/images/oauth_prompt.png )
9797
@@ -215,7 +215,7 @@ We can do whatever we want with our results. In this case, we'll just dump them
215215
216216It'd be a pretty bad model if we required users to log into the app every single
217217time 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.
219219
220220What if we could circumvent the entire
221221"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
348348
349349From the command line, call ` ruby advanced_server.rb ` , which starts up your
350350server 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! `
352352which redirects you to ` /callback ` . ` /callback ` then sends us back to ` / ` ,
353353and since we've been authenticated, renders _ advanced.erb_ .
354354
0 commit comments