wordjelly-auth 1.5.8 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/auth/rails/routes.rb +10 -10
- data/lib/auth/two_factor_otp.rb +4 -1
- data/lib/auth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f340b84740af8ff55f111656ddf05c5ece1c83e
|
4
|
+
data.tar.gz: 6fab7c11dd1f484f2f5ecb78c3855e61dbc643a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b269077cfbd6c8833d0578ab82893a3637ff618ae5d2930440708f107309ce50b918abf33e65718409094a6f8092ce301c18cb581ca8c3527c757ae014bae7
|
7
|
+
data.tar.gz: e041a7c9b8401b3cedb3a37ae482255bcadc8c3ad07c534a1e0b43fdc335d873998a40e15cf09d785953fa3a2722e213d37d492a307012dee67433a149b3f802
|
data/lib/auth/rails/routes.rb
CHANGED
@@ -1,21 +1,15 @@
|
|
1
1
|
module ActionDispatch::Routing
|
2
2
|
class Mapper
|
3
|
-
|
4
|
-
|
5
3
|
def get_scope(model)
|
6
4
|
scope_path = "/"
|
7
|
-
|
8
|
-
## because we have the model class as
|
9
|
-
## so how to split that for the scope
|
10
|
-
## normally i had shopping/payments/
|
11
|
-
#puts Auth.configuration.send("#{model}_class").underscore.pluralize.to_s
|
12
|
-
|
5
|
+
|
13
6
|
Auth.configuration.send("#{model}_class").underscore.pluralize.scan(/(?<scope_path>.+?)\/(?<collection>[A-Za-z_]+)$/) do
|
14
7
|
if Regexp.last_match[:scope_path]
|
15
8
|
scope_path = scope_path + Regexp.last_match[:scope_path]
|
16
9
|
end
|
17
10
|
end
|
18
11
|
|
12
|
+
#first run cyclically and check if the things change.
|
19
13
|
#puts "scope path is: #{scope_path}"
|
20
14
|
scope_path
|
21
15
|
|
@@ -33,6 +27,14 @@ module ActionDispatch::Routing
|
|
33
27
|
|
34
28
|
end
|
35
29
|
|
30
|
+
## now what flashing?
|
31
|
+
## or what ?
|
32
|
+
## a spec?
|
33
|
+
## okay let me add the images
|
34
|
+
## keep making progress
|
35
|
+
## and then we test it later.
|
36
|
+
## let me write flashing.
|
37
|
+
|
36
38
|
def get_collection(model)
|
37
39
|
collection = nil
|
38
40
|
Auth.configuration.send("#{model}_class").underscore.pluralize.scan(/(?<scope_path>.+?)\/(?<collection>[A-Za-z_]+)$/) do
|
@@ -47,8 +49,6 @@ module ActionDispatch::Routing
|
|
47
49
|
Auth.configuration.send("#{model}_controller")
|
48
50
|
end
|
49
51
|
|
50
|
-
|
51
|
-
|
52
52
|
##@param app_route_resources[Hash] ->
|
53
53
|
##key:resource[String] -> the name of the resource for which omniauth routes are to be generated.
|
54
54
|
##value:opts[Hash] -> the options specifying the views, controllers etc for omniauth.
|
data/lib/auth/two_factor_otp.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Auth
|
2
2
|
module TwoFactorOtp
|
3
3
|
# so this is complicated.
|
4
|
-
TYPHOEUS_TIMEOUT =
|
4
|
+
TYPHOEUS_TIMEOUT = 30
|
5
5
|
## the currently being used resource.
|
6
6
|
mattr_accessor :resource
|
7
7
|
|
@@ -53,6 +53,9 @@ module Auth
|
|
53
53
|
From: template_sender_id,
|
54
54
|
TemplateName: template_name,
|
55
55
|
}.merge(var_hash)
|
56
|
+
|
57
|
+
puts "url is: #{url}"
|
58
|
+
puts "body is: #{body}"
|
56
59
|
|
57
60
|
response = Typhoeus.post(
|
58
61
|
url,
|
data/lib/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordjelly-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bhargav
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: aws-sdk
|
14
|
+
name: aws-sdk-sns
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|