api_guard_grape 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/lib/api_guard_grape/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0f059f11ee3c6b9387bc7492027ee5a521110cd13ffff5367e99c19210546c6
|
|
4
|
+
data.tar.gz: 6fcd6cf23fe46e68400ab26ca485ac16439a1f1ec2d0357379249842ba8c628b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5a6532eb9cbb2c26d878822158ee04e17146f8896109620beb573ef7f6bb29e122dd5d1bac8e63a263de4dabd3fe0563df0bfb1db58d0cf3d5c1a26fb00081a
|
|
7
|
+
data.tar.gz: 335d7d8ae4baecf1df445ba7d597142ffb7344658340cb8bde36f36bc82a9a8795ac611f2846159e648e3a357c3ed4e856f59ac7264a278a9ff0b7983bffd5b6
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# API Guard
|
|
2
2
|
|
|
3
|
-
[](https://rubygems.org/gems/
|
|
4
|
-
[](https://codeclimate.com/github/prateeksinghbundela/
|
|
3
|
+
[](https://rubygems.org/gems/api_guard_grape)
|
|
4
|
+
[](https://github.com/prateeksinghbundela/api_guard_grape/actions?query=workflow%3Abuild)
|
|
5
|
+
[](https://codeclimate.com/github/prateeksinghbundela/api_guard_grape/maintainability)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
[JSON Web Token (JWT)](https://jwt.io/) based authentication solution with token refreshing & blacklisting for APIs
|
|
@@ -38,8 +38,8 @@ for cryptographic signing.
|
|
|
38
38
|
* [Override finding resource](#override-finding-resource)
|
|
39
39
|
* [Customizing / translating response messages using I18n](#customizing--translating-response-messages-using-i18n)
|
|
40
40
|
* [Testing](#testing)
|
|
41
|
-
* [Wiki](https://github.com/prateeksinghbundela/
|
|
42
|
-
* [Using API Guard with Devise](https://github.com/prateeksinghbundela/
|
|
41
|
+
* [Wiki](https://github.com/prateeksinghbundela/api_guard_grape/wiki)
|
|
42
|
+
* [Using API Guard with Devise](https://github.com/prateeksinghbundela/api_guard_grape/wiki/Using-API-Guard-with-Devise)
|
|
43
43
|
* [Contributing](#contributing)
|
|
44
44
|
* [License](#license)
|
|
45
45
|
|
|
@@ -82,7 +82,7 @@ $ rails db:migrate
|
|
|
82
82
|
Add [has_secure_password](https://api.rubyonrails.org/classes/ActiveModel/SecurePassword/ClassMethods.html#method-i-has_secure_password)
|
|
83
83
|
in `User` model for password authentication.
|
|
84
84
|
|
|
85
|
-
> Refer [this Wiki](https://github.com/prateeksinghbundela/
|
|
85
|
+
> Refer [this Wiki](https://github.com/prateeksinghbundela/api_guard_grape/wiki/Using-API-Guard-with-Devise#authentication) for configuring API Guard authentication to work with Devise instead of using `has_secure_password`.
|
|
86
86
|
|
|
87
87
|
```ruby
|
|
88
88
|
class User < ApplicationRecord
|
|
@@ -114,7 +114,7 @@ api_guard_grape_routes for: 'users'
|
|
|
114
114
|
|
|
115
115
|
This will generate default routes such as sign up, sign in, sign out, token refresh, password change for User.
|
|
116
116
|
|
|
117
|
-
> Refer [this Wiki](https://github.com/prateeksinghbundela/
|
|
117
|
+
> Refer [this Wiki](https://github.com/prateeksinghbundela/api_guard_grape/wiki/Using-API-Guard-with-Devise#routes) for configuring API Guard routes to work with Devise.
|
|
118
118
|
|
|
119
119
|
### Registration
|
|
120
120
|
|
|
@@ -633,7 +633,7 @@ en:
|
|
|
633
633
|
```
|
|
634
634
|
|
|
635
635
|
You can find the complete list of available keys in this file:
|
|
636
|
-
https://github.com/prateeksinghbundela/
|
|
636
|
+
https://github.com/prateeksinghbundela/api_guard_grape/blob/master/config/locales/en.yml
|
|
637
637
|
|
|
638
638
|
## Testing
|
|
639
639
|
|
|
@@ -680,7 +680,7 @@ Then, you can set the access token and refresh token in appropriate request head
|
|
|
680
680
|
|
|
681
681
|
## Contributing
|
|
682
682
|
|
|
683
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/prateeksinghbundela/
|
|
683
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/prateeksinghbundela/api_guard.
|
|
684
684
|
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
|
685
685
|
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
686
686
|
|