devise_token_auth_multi_email 0.9.0 → 0.9.1
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 +18 -26
- data/lib/devise_token_auth/version.rb +1 -1
- data/lib/devise_token_auth.rb +1 -0
- data/test/lib/devise_token_auth/rails/custom_routes_test.rb +5 -4
- metadata +1 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3477f41b3101bcdaa4bb943b33bbe096ad441593d643b7810d906d03358e17e3
|
|
4
|
+
data.tar.gz: 57fbaae04f8aa41684d02b57924f1499a8c11162ed8eb2541febd36e51e5851e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94058cdb4567ad9ad0f10044a68944607d728342d2a98291f54a48652dc6ec0a819a1b2112b3471c88d052783bd5a0d139951836e6f27cf84a3dfa3f585f7724
|
|
7
|
+
data.tar.gz: 0bbb954ae2deb1f413a4ec60d97f98ed058f23ca43f0b98a086ce3a532a59d452eee694885708f9fab4199722e84c5d854affc3f075331f6f7d34ce2061cba05
|
data/README.md
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
# Devise Token Auth
|
|
2
|
-
|
|
3
|
-
[](http://badge.fury.io/rb/devise_token_auth)
|
|
4
|
-
[](https://github.com/lynndylanhurley/devise_token_auth/actions/workflows/test.yml)
|
|
5
|
-
[](https://codeclimate.com/github/lynndylanhurley/devise_token_auth)
|
|
6
|
-
[](https://codeclimate.com/github/lynndylanhurley/devise_token_auth/coverage)
|
|
7
|
-
[](https://rubygems.org/gems/devise_token_auth)
|
|
8
|
-
[](#backers)
|
|
9
|
-
[](#sponsors)
|
|
10
|
-
[](https://gitter.im/lynndylanhurley/devise_token_auth?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
1
|
+
# Devise Token Auth Multi Email
|
|
11
2
|
|
|
12
3
|
Simple, multi-client and secure token-based authentication for Rails.
|
|
13
4
|
|
|
@@ -15,6 +6,9 @@ If you're building SPA or a mobile app, and you want authentication, you need to
|
|
|
15
6
|
This gem refreshes the tokens on each request, and expires them in a short time, so the app is secure.
|
|
16
7
|
Also, it maintains a session for each client/device, so you can have as many sessions as you want.
|
|
17
8
|
|
|
9
|
+
This version deviates from the parent in that it supports multiple
|
|
10
|
+
email addresses per user.
|
|
11
|
+
|
|
18
12
|
## Main features
|
|
19
13
|
|
|
20
14
|
* Seamless integration with:
|
|
@@ -30,19 +24,21 @@ Also, it maintains a session for each client/device, so you can have as many ses
|
|
|
30
24
|
* Login and logout
|
|
31
25
|
* Password reset, account confirmation
|
|
32
26
|
* Support for [multiple user models](./docs/usage/multiple_models.md).
|
|
27
|
+
* Support for multiple emails using * [devise-multi_email](https://github.com/allenwq/devise-multi_email)
|
|
33
28
|
* It is [secure](docs/security.md).
|
|
34
29
|
|
|
35
30
|
This project leverages the following gems:
|
|
36
31
|
|
|
37
32
|
* [Devise](https://github.com/plataformatec/devise)
|
|
38
33
|
* [OmniAuth](https://github.com/intridea/omniauth)
|
|
34
|
+
* [DeviseMultiEmail](https://github.com/allenwq/devise-multi_email)
|
|
39
35
|
|
|
40
36
|
## Installation
|
|
41
37
|
|
|
42
38
|
Add the following to your `Gemfile`:
|
|
43
39
|
|
|
44
40
|
~~~ruby
|
|
45
|
-
gem '
|
|
41
|
+
gem 'devise_token_auth_multi_email'
|
|
46
42
|
~~~
|
|
47
43
|
|
|
48
44
|
Then install the gem using bundle:
|
|
@@ -55,41 +51,37 @@ bundle install
|
|
|
55
51
|
|
|
56
52
|
## Need help?
|
|
57
53
|
|
|
58
|
-
Please use
|
|
54
|
+
Please use
|
|
55
|
+
[StackOverflow](https://stackoverflow.com/questions/tagged/devise-token-auth-multi-email) for help requests and how-to questions.
|
|
59
56
|
|
|
60
57
|
Please open GitHub issues for bugs and enhancements only, not general help requests. Please search previous issues (and Google and StackOverflow) before creating a new issue.
|
|
61
58
|
|
|
62
|
-
Please read the [issue
|
|
59
|
+
Please read the [issue
|
|
60
|
+
template](https://github.com/mgmodell/devise_token_auth_multi_email/blob/master/.github/ISSUE_TEMPLATE.md) before posting issues.
|
|
63
61
|
|
|
64
62
|
## [FAQ](docs/faq.md)
|
|
65
63
|
|
|
66
64
|
## Contributors wanted!
|
|
67
65
|
|
|
68
|
-
See our [Contribution
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
## Live Demos
|
|
73
|
-
|
|
74
|
-
[Here is a demo](https://stackblitz.com/github/neroniaky/angular-token) of this app running with the [Angular-Token](https://github.com/neroniaky/angular-token) service and [Angular](https://github.com/angular/angular).
|
|
75
|
-
|
|
76
|
-
The fully configured api used in these demos can be found [here](https://github.com/lynndylanhurley/devise_token_auth_demo).
|
|
77
|
-
|
|
66
|
+
See our [Contribution
|
|
67
|
+
Guidelines](https://github.com/mgmodell/devise_token_auth_multi_email/blob/master/.github/CONTRIBUTING.md).
|
|
68
|
+
Feel free to submit pull requests, review pull requests, or review open
|
|
69
|
+
issues.
|
|
78
70
|
|
|
79
71
|
## Contributors
|
|
80
72
|
|
|
81
|
-
<a href="graphs/contributors"><img src="https://opencollective.com/
|
|
73
|
+
<a href="graphs/contributors"><img src="https://opencollective.com/devise_token_auth_multi_email/contributors.svg?width=890&button=false" /></a>
|
|
82
74
|
|
|
83
75
|
## Backers
|
|
84
76
|
|
|
85
|
-
Thank you to all
|
|
77
|
+
Thank you to all the backers of the parent project! 🙏 [[Become a backer](https://opencollective.com/devise_token_auth#backer)]
|
|
86
78
|
|
|
87
79
|
[](https://opencollective.com/devise_token_auth#backers)
|
|
88
80
|
|
|
89
81
|
|
|
90
82
|
## Sponsors
|
|
91
83
|
|
|
92
|
-
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/devise_token_auth#sponsor)]
|
|
84
|
+
Support this project by becoming a sponsor of the parent. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/devise_token_auth#sponsor)]
|
|
93
85
|
|
|
94
86
|
[](https://opencollective.com/devise_token_auth/sponsor/0/website) [](https://opencollective.com/devise_token_auth/sponsor/1/website) [](https://opencollective.com/devise_token_auth/sponsor/2/website) [](https://opencollective.com/devise_token_auth/sponsor/3/website) [](https://opencollective.com/devise_token_auth/sponsor/4/website) [](https://opencollective.com/devise_token_auth/sponsor/5/website) [](https://opencollective.com/devise_token_auth/sponsor/6/website) [](https://opencollective.com/devise_token_auth/sponsor/7/website) [](https://opencollective.com/devise_token_auth/sponsor/8/website) [](https://opencollective.com/devise_token_auth/sponsor/9/website)
|
|
95
87
|
|
data/lib/devise_token_auth.rb
CHANGED
|
@@ -7,11 +7,12 @@ class DeviseTokenAuth::CustomRoutesTest < ActiveSupport::TestCase
|
|
|
7
7
|
Rails.application.reload_routes!
|
|
8
8
|
end
|
|
9
9
|
test 'custom controllers' do
|
|
10
|
-
class ActionDispatch::Routing::Mapper
|
|
11
|
-
include Mocha::ParameterMatchers
|
|
12
|
-
end
|
|
13
10
|
Rails.application.routes.draw do
|
|
14
|
-
self
|
|
11
|
+
mapper = self
|
|
12
|
+
mapper.singleton_class.include(Mocha::API)
|
|
13
|
+
mapper.singleton_class.include(Mocha::ParameterMatchers)
|
|
14
|
+
|
|
15
|
+
mapper.expects(:devise_for).with(
|
|
15
16
|
:users,
|
|
16
17
|
has_entries(
|
|
17
18
|
controllers: has_entries(
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise_token_auth_multi_email
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lynn Hurley
|
|
@@ -30,26 +30,6 @@ dependencies:
|
|
|
30
30
|
- - "<="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: '8.2'
|
|
33
|
-
- !ruby/object:Gem::Dependency
|
|
34
|
-
name: devise
|
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
|
36
|
-
requirements:
|
|
37
|
-
- - ">"
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: 3.5.2
|
|
40
|
-
- - "<"
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: '6.0'
|
|
43
|
-
type: :runtime
|
|
44
|
-
prerelease: false
|
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
46
|
-
requirements:
|
|
47
|
-
- - ">"
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: 3.5.2
|
|
50
|
-
- - "<"
|
|
51
|
-
- !ruby/object:Gem::Version
|
|
52
|
-
version: '6.0'
|
|
53
33
|
- !ruby/object:Gem::Dependency
|
|
54
34
|
name: bcrypt
|
|
55
35
|
requirement: !ruby/object:Gem::Requirement
|