omniauth-seznam-cz 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/seznam_cz/version.rb +1 -1
- data/lib/omniauth/strategies/seznam_cz.rb +0 -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: c648d155cac9a61f968db43ea6fc26ff6d665921fec222a48b66211673f9b7ad
|
4
|
+
data.tar.gz: 6c9334d0ff6cea90af56f1f2f24203ce9b655f7548f2aa76f6b0bcaabe2f9c9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca5180f1309200a762c9fd2c1fdad9d346730b96c2b43a4f4c186e8b8675c35edb689ca27cae35e91ae95fa55052b71a0e5eaad576685b92cd2beabfe0e2d8ea
|
7
|
+
data.tar.gz: 6651969510ae8717ed2e8018d2585198ed09ede87dfbdbeda4691094e00b4b5ca86573eafee8feb549831bd3e13917ea53ad3f5a746687e331ac1b8c91057341
|
@@ -6,13 +6,11 @@ require 'uri'
|
|
6
6
|
|
7
7
|
module OmniAuth
|
8
8
|
module Strategies
|
9
|
-
# Main class for Seznam.cz strategy.
|
10
9
|
class SeznamCz < OmniAuth::Strategies::OAuth2
|
11
10
|
ALLOWED_ISSUERS = ['login.szn.cz'].freeze
|
12
11
|
BASE_SCOPES = %w[identity contact-phone avatar].freeze
|
13
12
|
DEFAULT_SCOPE = 'identity'
|
14
13
|
USER_INFO_URL = 'https://login.szn.cz/api/v1/user'
|
15
|
-
IMAGE_SIZE_REGEXP = /(s\d+(-c)?)|(w\d+-h\d+(-c)?)|(w\d+(-c)?)|(h\d+(-c)?)|c/
|
16
14
|
|
17
15
|
option :name, 'seznam_cz'
|
18
16
|
option :skip_image_info, true
|