authi 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authi.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85bb4178a5b36b8d9e30f753099c860a3882d9b4
|
4
|
+
data.tar.gz: d3d17263f069c7e9ecff5ba9a59b2c613a41b143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d39702d636fc2072d9570d0a072fd805462565b0ea2d1d610f4c50c7f67e3f300fdde514b97facfc9d248f368f1f57d6bc309dcfe22028b420e32b00ef63dfff
|
7
|
+
data.tar.gz: 268b643d624118aee28629a9e4ab86eec9875913f3df96b56ad3eebedcfb9807b088fb73abb1d14b19f20d5ac9c47b8921e77cb7d3c45b15c6089b4222cdc849
|
data/lib/authi.rb
CHANGED
@@ -14,12 +14,12 @@ require 'securerandom'
|
|
14
14
|
# Now add this to to your header
|
15
15
|
# <code>header["Authorization"] = Authorization</code>
|
16
16
|
#
|
17
|
-
# secret_key generated from the server side can be kept inside the a environment variable with name
|
17
|
+
# secret_key generated from the server side can be kept inside the a environment variable with name <i>shared_key</i> along with <i>service_name</i> as your service name
|
18
18
|
#
|
19
19
|
# <i>Server Side API validation</i>
|
20
|
-
# <code>is_valid = Authy.validate_api(params, request.headers)
|
20
|
+
# <code>is_valid = Authy.validate_api(params, request.headers)</code>
|
21
21
|
# Generating secret key for clients
|
22
|
-
# <code>secret_key = Authy.generate_secret_key
|
22
|
+
# <code>secret_key = Authy.generate_secret_key</code>
|
23
23
|
module Authy
|
24
24
|
# Create a signed hash using input parameter
|
25
25
|
#
|