Skip to content

Commit e4c8655

Browse files
authored
Merge pull request github#26013 from github/repo-sync
repo sync
2 parents 531d0c3 + 8868ba6 commit e4c8655

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/rest/guides/basics-of-authentication.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ up your application. It's the callback URL that {% data variables.product.produc
3838
successful authentication.
3939

4040
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`.
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
9292
requesting `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
9595
should 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

216216
It'd be a pretty bad model if we required users to log into the app every single
217217
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.
219219

220220
What 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

349349
From the command line, call `ruby advanced_server.rb`, which starts up your
350350
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!`
352352
which redirects you to `/callback`. `/callback` then sends us back to `/`,
353353
and since we've been authenticated, renders _advanced.erb_.
354354

0 commit comments

Comments
 (0)