shilpa20 1.1.7 → 1.1.8
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/lib/shilpa20/authentication_service.rb +2 -2
- data/lib/shilpa20.rb +7 -2
- 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: 944b0fc0f82d53a9c8b9cfe031dab2bbb0ecd88a89d797178470aac52356b5d6
|
4
|
+
data.tar.gz: b8ae014067125c0b0cf3fcbc8c85fe48cdf7976397a1be137752695468a87ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce533f13849ed11de8af97fbf093664a1dc0394851bacd7da5672147d33917360fbebe4b7956ad6835a7585a5f8e4197c55bf9eee7d7bf59e7311dc10c396f58
|
7
|
+
data.tar.gz: 000a943257ee93cad00b9057af800b76cf022602146b69f68389f9b8298fd6681c20776d94cae9a5b3a18d93a3c862576687d8cd63bb88ab530957314a777c1a
|
@@ -7,8 +7,8 @@ class AuthenticationService
|
|
7
7
|
@@authentication_url = 'https://showoff-rails-react-production.herokuapp.com/oauth/token'
|
8
8
|
|
9
9
|
def self.create_authentication(auth_data)
|
10
|
-
auth_data.client_id =ApplicationConfig.get_client_id
|
11
|
-
auth_data.client_secret =ApplicationConfig.get_client_secret
|
10
|
+
auth_data.client_id = ApplicationConfig.get_client_id
|
11
|
+
auth_data.client_secret = ApplicationConfig.get_client_secret
|
12
12
|
auth_payload = Authentication.get_payload(auth_data)
|
13
13
|
return RestClient::Request.execute(method: :post, url: @@authentication_url,
|
14
14
|
payload: auth_payload, headers: {'Content-Type': 'application/json'})
|
data/lib/shilpa20.rb
CHANGED
@@ -9,8 +9,13 @@ require File.dirname(__FILE__) + '/shilpa20/user_widget_service'
|
|
9
9
|
require File.dirname(__FILE__) + '/domain/application_config'
|
10
10
|
|
11
11
|
class Shilpa20
|
12
|
+
|
13
|
+
def self.set_config(client_id, client_secret)
|
14
|
+
#ApplicationConfig.set_config("277ef29692f9a70d511415dc60592daf4cf2c6f6552d3e1b769924b2f2e2e6fe", "d6106f26e8ff5b749a606a1fba557f44eb3dca8f48596847770beb9b643ea352")
|
15
|
+
ApplicationConfig.set_config(client_id, client_secret)
|
16
|
+
end
|
17
|
+
|
12
18
|
|
13
|
-
ApplicationConfig.set_config("277ef29692f9a70d511415dc60592daf4cf2c6f6552d3e1b769924b2f2e2e6fe", "d6106f26e8ff5b749a606a1fba557f44eb3dca8f48596847770beb9b643ea352")
|
14
19
|
#Create authentication token
|
15
20
|
def self.create_authentication_token(auth_data)
|
16
21
|
return AuthenticationService.create_authentication(auth_data)
|
@@ -103,7 +108,7 @@ class Shilpa20
|
|
103
108
|
end
|
104
109
|
|
105
110
|
#puts " Inside shilpa 20"
|
106
|
-
puts Shilpa20.create_authentication_token(AuthenticationService.create_auth_data)
|
111
|
+
#puts Shilpa20.create_authentication_token(AuthenticationService.create_auth_data)
|
107
112
|
#Shilpa20.set_config("cid1","csecret1")
|
108
113
|
#Shilpa20.getConfig
|
109
114
|
#puts "Hi"
|