workos 0.3.1 → 0.3.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/Gemfile.lock +2 -2
- data/lib/workos/sso.rb +3 -3
- data/lib/workos/version.rb +1 -1
- data/spec/lib/workos/sso_spec.rb +4 -4
- data/workos.gemspec +14 -11
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2dc4e5ea1ade6d908e794c3b639b798c7e108c6d0f4b57b322943dd8f2385fb
|
|
4
|
+
data.tar.gz: b7aa22e7dcfe183574eb8db29990ba1427751b746aaf952f74d03be3a0ab1fb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7563e3b8585a1dce014b44b0096b9f9b7cb8716d95b0328e0e26690e8ef4e588464ecf1333d6f18aa6720649be2a4f3b334ec58d0be43b95e466f1cdfece73c3
|
|
7
|
+
data.tar.gz: 3a1de478d8e10c8bf78a7c1b880df0ae01858562394c82161dbf36fb9bb2e8de51d0e6166a5556af4a715d8dd26d300b2bde4aadb47a3c06560be88687c532e8
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
workos (0.3.
|
|
4
|
+
workos (0.3.2)
|
|
5
5
|
sorbet-runtime (~> 0.5)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -56,7 +56,7 @@ GEM
|
|
|
56
56
|
simplecov-html (0.10.2)
|
|
57
57
|
sorbet (0.5.5560)
|
|
58
58
|
sorbet-static (= 0.5.5560)
|
|
59
|
-
sorbet-runtime (0.5.
|
|
59
|
+
sorbet-runtime (0.5.5657)
|
|
60
60
|
sorbet-static (0.5.5560-universal-darwin-14)
|
|
61
61
|
unicode-display_width (1.6.0)
|
|
62
62
|
url (0.3.2)
|
data/lib/workos/sso.rb
CHANGED
|
@@ -31,7 +31,7 @@ module WorkOS
|
|
|
31
31
|
# @param [String] redirect_uri The URI where users are directed
|
|
32
32
|
# after completing the authentication step. Must match a
|
|
33
33
|
# configured redirect URI on your WorkOS dashboard.
|
|
34
|
-
# @param [
|
|
34
|
+
# @param [String] state An aribtrary state object
|
|
35
35
|
# that is preserved and available to the client in the response.
|
|
36
36
|
# @example
|
|
37
37
|
# WorkOS::SSO.authorization_url(
|
|
@@ -55,11 +55,11 @@ module WorkOS
|
|
|
55
55
|
redirect_uri: String,
|
|
56
56
|
domain: T.nilable(String),
|
|
57
57
|
provider: T.nilable(String),
|
|
58
|
-
state:
|
|
58
|
+
state: T.nilable(String),
|
|
59
59
|
).returns(String)
|
|
60
60
|
end
|
|
61
61
|
def authorization_url(
|
|
62
|
-
project_id:, redirect_uri:, domain: nil, provider: nil, state:
|
|
62
|
+
project_id:, redirect_uri:, domain: nil, provider: nil, state: ''
|
|
63
63
|
)
|
|
64
64
|
validate_domain_and_provider(provider: provider, domain: domain)
|
|
65
65
|
|
data/lib/workos/version.rb
CHANGED
data/spec/lib/workos/sso_spec.rb
CHANGED
|
@@ -13,7 +13,7 @@ describe WorkOS::SSO do
|
|
|
13
13
|
redirect_uri: 'foo.com/auth/callback',
|
|
14
14
|
state: {
|
|
15
15
|
next_page: '/dashboard/edit',
|
|
16
|
-
},
|
|
16
|
+
}.to_s,
|
|
17
17
|
}
|
|
18
18
|
end
|
|
19
19
|
it 'returns a valid URL' do
|
|
@@ -47,7 +47,7 @@ describe WorkOS::SSO do
|
|
|
47
47
|
redirect_uri: 'foo.com/auth/callback',
|
|
48
48
|
state: {
|
|
49
49
|
next_page: '/dashboard/edit',
|
|
50
|
-
},
|
|
50
|
+
}.to_s,
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
it 'returns a valid URL' do
|
|
@@ -80,7 +80,7 @@ describe WorkOS::SSO do
|
|
|
80
80
|
redirect_uri: 'foo.com/auth/callback',
|
|
81
81
|
state: {
|
|
82
82
|
next_page: '/dashboard/edit',
|
|
83
|
-
},
|
|
83
|
+
}.to_s,
|
|
84
84
|
}
|
|
85
85
|
end
|
|
86
86
|
it 'raises an error' do
|
|
@@ -101,7 +101,7 @@ describe WorkOS::SSO do
|
|
|
101
101
|
redirect_uri: 'foo.com/auth/callback',
|
|
102
102
|
state: {
|
|
103
103
|
next_page: '/dashboard/edit',
|
|
104
|
-
},
|
|
104
|
+
}.to_s,
|
|
105
105
|
}
|
|
106
106
|
end
|
|
107
107
|
it 'raises an error' do
|
data/workos.gemspec
CHANGED
|
@@ -5,18 +5,21 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
5
5
|
require 'workos/version'
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name
|
|
9
|
-
spec.version
|
|
10
|
-
spec.authors
|
|
11
|
-
spec.email
|
|
12
|
-
spec.description
|
|
13
|
-
spec.summary
|
|
14
|
-
spec.homepage
|
|
15
|
-
spec.license
|
|
8
|
+
spec.name = 'workos'
|
|
9
|
+
spec.version = WorkOS::VERSION
|
|
10
|
+
spec.authors = ['WorkOS']
|
|
11
|
+
spec.email = ['support@workos.com']
|
|
12
|
+
spec.description = 'API client for WorkOS'
|
|
13
|
+
spec.summary = 'API client for WorkOS'
|
|
14
|
+
spec.homepage = 'https://github.com/workos-inc/workos-ruby'
|
|
15
|
+
spec.license = 'MIT'
|
|
16
|
+
spec.metadata = {
|
|
17
|
+
'documentation_uri' => 'https://docs.workos.com/sdk/ruby',
|
|
18
|
+
}
|
|
16
19
|
|
|
17
|
-
spec.files
|
|
18
|
-
spec.executables
|
|
19
|
-
spec.test_files
|
|
20
|
+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
|
21
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
22
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
20
23
|
spec.require_paths = ['lib']
|
|
21
24
|
|
|
22
25
|
spec.add_dependency 'sorbet-runtime', '~> 0.5'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WorkOS
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sorbet-runtime
|
|
@@ -257,7 +257,8 @@ files:
|
|
|
257
257
|
homepage: https://github.com/workos-inc/workos-ruby
|
|
258
258
|
licenses:
|
|
259
259
|
- MIT
|
|
260
|
-
metadata:
|
|
260
|
+
metadata:
|
|
261
|
+
documentation_uri: https://docs.workos.com/sdk/ruby
|
|
261
262
|
post_install_message:
|
|
262
263
|
rdoc_options: []
|
|
263
264
|
require_paths:
|
|
@@ -273,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
273
274
|
- !ruby/object:Gem::Version
|
|
274
275
|
version: '0'
|
|
275
276
|
requirements: []
|
|
276
|
-
rubygems_version: 3.1.
|
|
277
|
+
rubygems_version: 3.1.3
|
|
277
278
|
signing_key:
|
|
278
279
|
specification_version: 4
|
|
279
280
|
summary: API client for WorkOS
|