standard_id-google 0.1.0 → 0.1.1
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/standard_id/google/providers/google.rb +10 -9
- data/lib/standard_id/google/version.rb +1 -1
- 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: 77c483758db0802e58687b5c8ed4465ed8d4c5ecb1bd4af9f7078b6ed12d236b
|
|
4
|
+
data.tar.gz: '00569352c386b2b28c6cfacbdda6640f2bcaa287af315c2d15820726bc7a89be'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 528bb72eb448ce2f3c4078d64b31d9d91ab6602cd176279ead86226849c295a25494af7cb4a8b0703260f90b47bf5a77d094b5b137eef5506c4e46158052f7d7
|
|
7
|
+
data.tar.gz: 4cf122d55787bf6fa36902023afab87c4540c0a9824899447a7b0e81ce4082f9ca3a0f92d0f1d970067c61f7a52ab9638c97a7d7bd2fd3d5cd1d6f44a113c8a6
|
|
@@ -145,16 +145,17 @@ module StandardId
|
|
|
145
145
|
private
|
|
146
146
|
|
|
147
147
|
def credentials
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
{
|
|
154
|
-
client_id: StandardId.config.social.google_client_id,
|
|
155
|
-
client_secret: StandardId.config.social.google_client_secret
|
|
156
|
-
}
|
|
148
|
+
client_id = StandardId.config.google_client_id
|
|
149
|
+
client_secret = StandardId.config.google_client_secret
|
|
150
|
+
|
|
151
|
+
if client_id.blank? || client_secret.blank?
|
|
152
|
+
raise StandardId::InvalidRequestError, "Google provider is not configured"
|
|
157
153
|
end
|
|
154
|
+
|
|
155
|
+
{
|
|
156
|
+
client_id: client_id,
|
|
157
|
+
client_secret: client_secret
|
|
158
|
+
}
|
|
158
159
|
end
|
|
159
160
|
|
|
160
161
|
def verify_token(access_token)
|