oauth_im 0.7.1 → 0.7.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/README.md +3 -0
- data/app/services/oauth_im/client.rb +11 -1
- data/lib/oauth_im/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa5dbaae2a3e5884523e938a1a2c1a5009297260c2ced57a69eb6b9b43bc0116
|
|
4
|
+
data.tar.gz: 5d80271d7c2aa8d9baa53119180c7889da5c47f30f51cf92d8f0aa2f1c2e5376
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 873154c1389b866c7d68d209d6bf83e107c7db64e01ab0bffcba9578ad5f6e0df22ea91a66fda1dd67ee9675ad18c330716c7572b772e9e721a241e5a473369c
|
|
7
|
+
data.tar.gz: 8e1c2d0c1ef24d23f4348788fee37befbf216af10b9425f4dc861739dc745ab57db76b3c7b0a3d8869457aa1b701d7a5fe6940358a47ec104fe7aca9027fb9b0
|
data/README.md
CHANGED
|
@@ -124,6 +124,9 @@ After many false starts, this repo includes two (seemingly functional) github wo
|
|
|
124
124
|
|
|
125
125
|
## Version History
|
|
126
126
|
|
|
127
|
+
### 0.7.2
|
|
128
|
+
* Using :http protocol in tests (not https)
|
|
129
|
+
|
|
127
130
|
### 0.7.1
|
|
128
131
|
* Improving separation of concerns by way of a separate service object to manage oauth client.
|
|
129
132
|
|
|
@@ -39,7 +39,17 @@ module OauthIm
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def redirect_url
|
|
42
|
-
@redirect_url ||=
|
|
42
|
+
@redirect_url ||=
|
|
43
|
+
Engine.routes.url_helpers.callback_url callback_url_params
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def callback_url_params
|
|
47
|
+
@callback_url_params ||= { host: host_with_port,
|
|
48
|
+
protocol: protocol }.freeze
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def protocol
|
|
52
|
+
@protocol ||= Rails.env.test? ? :http : :https
|
|
43
53
|
end
|
|
44
54
|
|
|
45
55
|
def decoded_token
|
data/lib/oauth_im/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oauth_im
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Connally
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-05-
|
|
11
|
+
date: 2022-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|