exvo-auth 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/exvo-auth.gemspec +1 -1
- data/lib/exvo_auth/path_helpers.rb +8 -0
- data/lib/exvo_auth/strategies/non_interactive.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/exvo-auth.gemspec
CHANGED
@@ -17,6 +17,14 @@ module ExvoAuth::PathHelpers
|
|
17
17
|
def auth_sign_out_url
|
18
18
|
ExvoAuth::Config.host + "/users/sign_out"
|
19
19
|
end
|
20
|
+
|
21
|
+
def auth_sign_in_url
|
22
|
+
ExvoAuth::Config.host + "/users/sign_in"
|
23
|
+
end
|
24
|
+
|
25
|
+
def auth_sign_up_url
|
26
|
+
ExvoAuth::Config.host + "/users/sign_up"
|
27
|
+
end
|
20
28
|
|
21
29
|
private
|
22
30
|
|
@@ -19,6 +19,6 @@ class ExvoAuth::Strategies::NonInteractive < ExvoAuth::Strategies::Base
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def fail!(message_key)
|
22
|
-
[
|
22
|
+
[401, { "Content-Type" => "application/json" }, [MultiJson.encode(:message => "Not signed in!", :status => 401)]]
|
23
23
|
end
|
24
24
|
end
|