auth-lh 0.0.1 → 0.0.2
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/CHANGELOG.md +4 -0
- data/lib/auth/lh/api.rb +4 -4
- data/lib/auth/lh/version.rb +1 -1
- 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: 9a58dc03a609014083b101897c735a60371934d9
|
4
|
+
data.tar.gz: 347075011ff1dc6e4ce97ecb919da18383265b7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89927a9dad4297449f3f2baf165307065248c43422ccef0943bf05c560368f56bfcf035094d4fcba4e5100ef5d668856b5c0f13a4afeab58f3fb268f6e9afd99
|
7
|
+
data.tar.gz: 5e05946971015750e6d8d29ad141efdbb2b5ac3452e39ca62ed3ca52760273a9ce970ed4f17ce89855ea9792f067dc4fb04107ba2306bd2ad102443b245bf3cb
|
data/CHANGELOG.md
CHANGED
data/lib/auth/lh/api.rb
CHANGED
@@ -23,11 +23,11 @@ module Auth
|
|
23
23
|
|
24
24
|
def login_url
|
25
25
|
login_attempt = create_login_attempt
|
26
|
-
"#{@
|
26
|
+
"#{@endpoint}/login?attempt=#{login_attempt.token}"
|
27
27
|
end
|
28
28
|
|
29
29
|
def logout_url
|
30
|
-
"#{@
|
30
|
+
"#{@endpoint}/logout?return=#{CGI::escape(@return_url)}"
|
31
31
|
end
|
32
32
|
|
33
33
|
protected
|
@@ -42,11 +42,11 @@ module Auth
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def get_request(action, params={})
|
45
|
-
JSON.parse(RestClient.get("#{@
|
45
|
+
JSON.parse(RestClient.get("#{@endpoint}#{action}", {params: params}))
|
46
46
|
end
|
47
47
|
|
48
48
|
def post_request(action, params={})
|
49
|
-
JSON.parse(RestClient.post("#{@
|
49
|
+
JSON.parse(RestClient.post("#{@endpoint}#{action}", params))
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
data/lib/auth/lh/version.rb
CHANGED