sirportly 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sirportly/public_token.rb +19 -0
- metadata +3 -2
@@ -0,0 +1,19 @@
|
|
1
|
+
module Sirportly
|
2
|
+
class PublicToken
|
3
|
+
|
4
|
+
class << self
|
5
|
+
|
6
|
+
def token_login_url(public_interface, customer_details = {})
|
7
|
+
token = generate_public_token(public_interface, customer_details)
|
8
|
+
"#{token['public_interface']['access_domain_with_protocol']}/login/#{token['token']}"
|
9
|
+
end
|
10
|
+
|
11
|
+
def generate_public_token(public_interface, customer_details={})
|
12
|
+
options = {:public_interface => public_interface}.merge(customer_details)
|
13
|
+
Request.request('authentication/public_token', options)
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sirportly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-01 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: adam@atechmedia.com
|
@@ -20,6 +20,7 @@ files:
|
|
20
20
|
- lib/sirportly.rb
|
21
21
|
- lib/sirportly/knowledge_base.rb
|
22
22
|
- lib/sirportly/objects.rb
|
23
|
+
- lib/sirportly/public_token.rb
|
23
24
|
- lib/sirportly/request.rb
|
24
25
|
- lib/sirportly/ticket.rb
|
25
26
|
homepage: http://www.sirportly.com
|