Skip to content

Commit

Permalink
Merge pull request #1176 from MaicolBen/update_doc_link
Browse files Browse the repository at this point in the history
Update gitbook docs link
  • Loading branch information
lynndylanhurley authored Jul 2, 2018
2 parents fcb1e6d + 4407893 commit c734d6d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .gitbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
root: ./
structure:
readme: ./docs/installation.md
summary: SUMMARY.md
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Then install the gem using bundle:
bundle install
~~~

## [Docs](https://maicolben.gitbooks.io/devise-token-auth/content/docs/config/)
## [Docs](https://devise-token-auth.gitbook.io/devise-token-auth)

## Need help?

Expand Down
11 changes: 3 additions & 8 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# Summary

* Introduction
* [Installation](README.md#installation)
* [Need help?](README.md#need-help)
* [Live demos](README.md#live-demos)
* Configuration
* [Introduction](docs/config/README.md)
* [Installation](docs/installation.md)
* [Configuration](docs/config/README.md)
* [Initializer Settings](docs/config/initialization.md)
* [OmniAuth](docs/config/omniauth.md)
* [Email Authentication](docs/config/email_auth.md)
* [Customizing Devise Verbiage](docs/config/devise.md)
* [Cross Origin Requests (CORS)](docs/config/cors.md)
* Usage
* [Introduction](docs/usage/README.md)
* [Usage](docs/usage/README.md)
* [Mounting Routes](docs/usage/routes.md)
* [Controller Integration](docs/usage/controller_methods.md)
* [Model Integration](docs/usage/model_concerns.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ You may also need to configure the following items:

* **OmniAuth providers** when using 3rd party oauth2 authentication. [Read more](omniauth.md).
* **Cross Origin Request Settings** when using cross-domain clients. [Read more](cors.md).
* **Email** when using email registration. [Read more](email-auth.md).
* **Email** when using email registration. [Read more](email_auth.md).
* **Multiple model support** may require additional steps. [Read more](/docs/usage/multiple_models.md).
13 changes: 13 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Installation

Add the following to your `Gemfile`:

~~~ruby
gem 'devise_token_auth'
~~~

Then install the gem using bundle:

~~~bash
bundle install
~~~
2 changes: 1 addition & 1 deletion docs/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This gem takes the following steps to ensure security.

This gem uses auth tokens that are:
* [changed after every request](#about-token-management) (can be [turned off](https://github.com/lynndylanhurley/devise_token_auth/#initializer-settings)),
* [changed after every request](/docs/conceptual.md#about-token-management) (can be [turned off](https://github.com/lynndylanhurley/devise_token_auth/#initializer-settings)),
* [of cryptographic strength](https://ruby-doc.org/stdlib-2.1.0/libdoc/securerandom/rdoc/SecureRandom.html),
* hashed using [BCrypt](https://github.com/codahale/bcrypt-ruby) (not stored in plain-text),
* securely compared (to protect against timing attacks),
Expand Down
8 changes: 4 additions & 4 deletions docs/usage/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ describe 'Whether access is ocurring properly', type: :request do
login
auth_params = get_auth_params_from_login_response_headers(response).tap do |h|
h.each do |k, _v|
if k == 'access-token'
h[k] = '123'
end end
if k == 'access-token'
h[k] = '123'
end end
end
new_client = FactoryBot.create(:client)
get api_find_client_by_name_path(new_client.name), headers: auth_params
Expand Down Expand Up @@ -125,7 +125,7 @@ end

```

### (b) How to create an authorisation header from Scratch
### (b) How to create an authorization header from Scratch

```ruby
require 'rails_helper'
Expand Down

0 comments on commit c734d6d

Please sign in to comment.