app/views/oauth/docs/markdown/quick_start.md.erb in opro-0.0.1.pre1.0.1 vs app/views/oauth/docs/markdown/quick_start.md.erb in opro-0.0.1.pre1.0.2
- old
+ new
@@ -1,8 +1,8 @@
## Quick Start Guide
-This site is providing OAuth through [Opro](http://github.com/schneems/opro). If this is your first time using Oauth, please visit [What is Oauth]() or follow along with this guide.
+This site is providing OAuth through [Opro](http://github.com/schneems/opro). If this is your first time using Oauth, please visit [What is Oauth](<%= oauth_doc_path(:oauth) %>) or follow along with this guide.
## Step 1: Register your Application
Sign in as a registered user then visit the [new client application page](/oauth_client_applications/new). Enter in the name of your application for this example we can use `foo`, you can change this later if you desire. Hit enter and you should see a screen that has your application name along with a `client id` and a `secret`, these behave like a username and password for your OAuth application.
@@ -26,18 +26,18 @@
Once you grant your application permission, you will be redirected back to the url provided. In this case we will go back to the home page of our app.
Once redirected to the home page, take a look in the address bar, we should see a `code` parameter. Copy this for use later:
- <%= "#{request.base_url}?" %>?code=4857goldfish827423
+ <%= "#{request.base_url}" %>?code=4857goldfish827423
In the url above the `code` would be `4857goldfish827423`. This code can be used to obtain an access token for the user. Once you have a user's access token, you can perform actions for the user as if they were logged in. If you accidentally close this page, don't worry just visit first url and we'll show you the code again.
## Step 3: Get AccessToken for User with Curl
-We'll be using [Curl]() to go through the process of getting an access for our first user, you'll likely use http client libraries in your actual applications, but most systems come with curl and it is a fairly easy way to get started. If you've never used it before read our [curl documentation]()
+We'll be using [Curl](<%= oauth_doc_path(:curl) %>) to go through the process of getting an access for our first user, you'll likely use http client libraries in your actual applications, but most systems come with curl and it is a fairly easy way to get started. If you've never used it before read our [curl documentation](<%= oauth_doc_path(:curl) %>)
(Note in all code examples the $ character indicates we are on the command line, it does not need to be coppied)
$ curl '<%= "#{request.base_url}/oauth/access_token?" %>?client_id=3234myClientId5678&client_secret=14321myClientSecret8765&code=4857goldfish827423'
@@ -66,6 +66,5 @@
## Security
Don't share your client application's secret or any user's access_token with unknown or untrusted parties. Always use https when available and don't write any of these values to your application's logs.
-<%= view_context.link_to ' ← back', oauth_docs_path %>