descope 1.0.6 → 1.1.0

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yaml +51 -12
  3. data/.github/workflows/publish-gem.yaml +6 -26
  4. data/.github/workflows/release-please.yaml +36 -0
  5. data/.gitignore +5 -2
  6. data/.release-please-manifest.json +1 -1
  7. data/.ruby-version +1 -1
  8. data/CHANGELOG.md +21 -0
  9. data/Gemfile +8 -7
  10. data/Gemfile.lock +70 -56
  11. data/README.md +170 -51
  12. data/examples/ruby-on-rails-api/descope/Gemfile +8 -8
  13. data/examples/ruby-on-rails-api/descope/Gemfile.lock +1 -1
  14. data/examples/ruby-on-rails-api/descope/package-lock.json +203 -141
  15. data/examples/ruby-on-rails-api/descope/package.json +1 -1
  16. data/examples/ruby-on-rails-api/descope/yarn.lock +185 -87
  17. data/lib/descope/api/v1/auth/enchantedlink.rb +3 -1
  18. data/lib/descope/api/v1/auth/magiclink.rb +3 -1
  19. data/lib/descope/api/v1/auth/otp.rb +3 -1
  20. data/lib/descope/api/v1/auth/password.rb +6 -2
  21. data/lib/descope/api/v1/auth/totp.rb +3 -1
  22. data/lib/descope/api/v1/auth.rb +47 -12
  23. data/lib/descope/api/v1/management/common.rb +20 -5
  24. data/lib/descope/api/v1/management/sso_application.rb +236 -0
  25. data/lib/descope/api/v1/management/sso_settings.rb +2 -24
  26. data/lib/descope/api/v1/management/user.rb +151 -13
  27. data/lib/descope/api/v1/management.rb +2 -0
  28. data/lib/descope/api/v1/session.rb +37 -4
  29. data/lib/descope/mixins/common.rb +1 -0
  30. data/lib/descope/mixins/http.rb +60 -9
  31. data/lib/descope/mixins/initializer.rb +5 -2
  32. data/lib/descope/mixins/logging.rb +12 -4
  33. data/lib/descope/version.rb +1 -1
  34. data/spec/descope/api/v1/auth_spec.rb +29 -0
  35. data/spec/descope/api/v1/auth_token_extraction_spec.rb +126 -0
  36. data/spec/descope/api/v1/session_refresh_spec.rb +98 -0
  37. data/spec/factories/user.rb +1 -1
  38. data/spec/integration/lib.descope/api/v1/auth/enchantedlink_spec.rb +20 -22
  39. data/spec/integration/lib.descope/api/v1/auth/magiclink_spec.rb +6 -2
  40. data/spec/integration/lib.descope/api/v1/auth/otp_spec.rb +6 -2
  41. data/spec/integration/lib.descope/api/v1/auth/session_spec.rb +68 -0
  42. data/spec/integration/lib.descope/api/v1/auth/totp_spec.rb +6 -2
  43. data/spec/integration/lib.descope/api/v1/management/access_key_spec.rb +12 -1
  44. data/spec/integration/lib.descope/api/v1/management/audit_spec.rb +5 -3
  45. data/spec/integration/lib.descope/api/v1/management/authz_spec.rb +28 -5
  46. data/spec/integration/lib.descope/api/v1/management/flow_spec.rb +3 -1
  47. data/spec/integration/lib.descope/api/v1/management/permissions_spec.rb +22 -2
  48. data/spec/integration/lib.descope/api/v1/management/project_spec.rb +18 -2
  49. data/spec/integration/lib.descope/api/v1/management/roles_spec.rb +116 -36
  50. data/spec/integration/lib.descope/api/v1/management/user_spec.rb +74 -8
  51. data/spec/lib.descope/api/v1/auth/enchantedlink_spec.rb +11 -2
  52. data/spec/lib.descope/api/v1/auth/password_spec.rb +10 -1
  53. data/spec/lib.descope/api/v1/auth_spec.rb +167 -5
  54. data/spec/lib.descope/api/v1/cookie_domain_fix_integration_spec.rb +245 -0
  55. data/spec/lib.descope/api/v1/management/sso_application_spec.rb +217 -0
  56. data/spec/lib.descope/api/v1/management/sso_settings_spec.rb +2 -2
  57. data/spec/lib.descope/api/v1/management/user_spec.rb +134 -46
  58. data/spec/lib.descope/api/v1/session_spec.rb +119 -6
  59. data/spec/lib.descope/mixins/http_spec.rb +229 -0
  60. data/spec/support/client_config.rb +0 -1
  61. data/spec/support/utils.rb +21 -0
  62. metadata +14 -8
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: descope
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Descope Inc.
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-04-17 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: addressable
@@ -88,6 +87,7 @@ extra_rdoc_files: []
88
87
  files:
89
88
  - ".github/workflows/ci.yaml"
90
89
  - ".github/workflows/publish-gem.yaml"
90
+ - ".github/workflows/release-please.yaml"
91
91
  - ".gitignore"
92
92
  - ".release-please-manifest.json"
93
93
  - ".rubocop.yml"
@@ -277,6 +277,7 @@ files:
277
277
  - lib/descope/api/v1/management/project.rb
278
278
  - lib/descope/api/v1/management/role.rb
279
279
  - lib/descope/api/v1/management/scim.rb
280
+ - lib/descope/api/v1/management/sso_application.rb
280
281
  - lib/descope/api/v1/management/sso_settings.rb
281
282
  - lib/descope/api/v1/management/tenant.rb
282
283
  - lib/descope/api/v1/management/user.rb
@@ -294,11 +295,15 @@ files:
294
295
  - lib/descope_client.rb
295
296
  - release-please-config.json
296
297
  - renovate.json
298
+ - spec/descope/api/v1/auth_spec.rb
299
+ - spec/descope/api/v1/auth_token_extraction_spec.rb
300
+ - spec/descope/api/v1/session_refresh_spec.rb
297
301
  - spec/factories/user.rb
298
302
  - spec/integration/lib.descope/api/v1/auth/enchantedlink_spec.rb
299
303
  - spec/integration/lib.descope/api/v1/auth/magiclink_spec.rb
300
304
  - spec/integration/lib.descope/api/v1/auth/otp_spec.rb
301
305
  - spec/integration/lib.descope/api/v1/auth/password_spec.rb
306
+ - spec/integration/lib.descope/api/v1/auth/session_spec.rb
302
307
  - spec/integration/lib.descope/api/v1/auth/totp_spec.rb
303
308
  - spec/integration/lib.descope/api/v1/management/access_key_spec.rb
304
309
  - spec/integration/lib.descope/api/v1/management/audit_spec.rb
@@ -316,6 +321,7 @@ files:
316
321
  - spec/lib.descope/api/v1/auth/saml_spec.rb
317
322
  - spec/lib.descope/api/v1/auth/totp_spec.rb
318
323
  - spec/lib.descope/api/v1/auth_spec.rb
324
+ - spec/lib.descope/api/v1/cookie_domain_fix_integration_spec.rb
319
325
  - spec/lib.descope/api/v1/management/access_key_spec.rb
320
326
  - spec/lib.descope/api/v1/management/audit_spec.rb
321
327
  - spec/lib.descope/api/v1/management/authz_spec.rb
@@ -325,11 +331,13 @@ files:
325
331
  - spec/lib.descope/api/v1/management/project_spec.rb
326
332
  - spec/lib.descope/api/v1/management/role_spec.rb
327
333
  - spec/lib.descope/api/v1/management/scim_spec.rb
334
+ - spec/lib.descope/api/v1/management/sso_application_spec.rb
328
335
  - spec/lib.descope/api/v1/management/sso_settings_spec.rb
329
336
  - spec/lib.descope/api/v1/management/tenant_spec.rb
330
337
  - spec/lib.descope/api/v1/management/user_spec.rb
331
338
  - spec/lib.descope/api/v1/session_spec.rb
332
339
  - spec/lib.descope/client_spec.rb
340
+ - spec/lib.descope/mixins/http_spec.rb
333
341
  - spec/spec_helper.rb
334
342
  - spec/support/client_config.rb
335
343
  - spec/support/dummy_class.rb
@@ -339,10 +347,9 @@ licenses:
339
347
  - MIT
340
348
  metadata:
341
349
  bug_tracker_uri: https://github.com/descope/descope-ruby-sdk/issues
342
- changelog_uri: https://github.com/descope/descope-ruby-sdk/releases/tag/1.0.6
350
+ changelog_uri: https://github.com/descope/descope-ruby-sdk/releases/tag/1.1.0
343
351
  documentation_uri: https://docs.descope.com
344
- source_code_uri: https://github.com/descope/descope-ruby-sdk/tree/1.0.6
345
- post_install_message:
352
+ source_code_uri: https://github.com/descope/descope-ruby-sdk/tree/1.1.0
346
353
  rdoc_options: []
347
354
  require_paths:
348
355
  - lib
@@ -357,8 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
357
364
  - !ruby/object:Gem::Version
358
365
  version: '3.5'
359
366
  requirements: []
360
- rubygems_version: 3.5.3
361
- signing_key:
367
+ rubygems_version: 3.6.9
362
368
  specification_version: 4
363
369
  summary: Descope Ruby API Client
364
370
  test_files: []