descope 1.0.4

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 (197) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yaml +54 -0
  3. data/.gitignore +59 -0
  4. data/.release-please-manifest.json +3 -0
  5. data/.rubocop.yml +10 -0
  6. data/.rubocop_todo.yml +10 -0
  7. data/.ruby-version +1 -0
  8. data/CHANGELOG.md +90 -0
  9. data/Gemfile +22 -0
  10. data/Gemfile.lock +204 -0
  11. data/LICENSE +21 -0
  12. data/README.md +1171 -0
  13. data/Rakefile +31 -0
  14. data/descope.gemspec +34 -0
  15. data/examples/ruby/Gemfile +4 -0
  16. data/examples/ruby/Gemfile.lock +41 -0
  17. data/examples/ruby/access_key_app.rb +45 -0
  18. data/examples/ruby/enchantedlink_app.rb +65 -0
  19. data/examples/ruby/magiclink_app.rb +81 -0
  20. data/examples/ruby/management/Gemfile +5 -0
  21. data/examples/ruby/management/Gemfile.lock +38 -0
  22. data/examples/ruby/management/access_key_app.rb +71 -0
  23. data/examples/ruby/management/audit_app.rb +25 -0
  24. data/examples/ruby/management/authz_app.rb +135 -0
  25. data/examples/ruby/management/authz_files.json +229 -0
  26. data/examples/ruby/management/flow_app.rb +57 -0
  27. data/examples/ruby/management/permission_app.rb +56 -0
  28. data/examples/ruby/management/role_app.rb +58 -0
  29. data/examples/ruby/management/tenant_app.rb +60 -0
  30. data/examples/ruby/management/user_app.rb +60 -0
  31. data/examples/ruby/oauth_app.rb +39 -0
  32. data/examples/ruby/otp_app.rb +50 -0
  33. data/examples/ruby/password_app.rb +76 -0
  34. data/examples/ruby/saml_app.rb +38 -0
  35. data/examples/ruby-on-rails-api/descope/.dockerignore +37 -0
  36. data/examples/ruby-on-rails-api/descope/.gitattributes +9 -0
  37. data/examples/ruby-on-rails-api/descope/.gitignore +40 -0
  38. data/examples/ruby-on-rails-api/descope/.node-version +1 -0
  39. data/examples/ruby-on-rails-api/descope/.ruby-version +1 -0
  40. data/examples/ruby-on-rails-api/descope/Dockerfile +75 -0
  41. data/examples/ruby-on-rails-api/descope/Gemfile +67 -0
  42. data/examples/ruby-on-rails-api/descope/Gemfile.lock +284 -0
  43. data/examples/ruby-on-rails-api/descope/Procfile.dev +3 -0
  44. data/examples/ruby-on-rails-api/descope/README.md +54 -0
  45. data/examples/ruby-on-rails-api/descope/Rakefile +6 -0
  46. data/examples/ruby-on-rails-api/descope/app/assets/builds/.keep +0 -0
  47. data/examples/ruby-on-rails-api/descope/app/assets/config/manifest.js +3 -0
  48. data/examples/ruby-on-rails-api/descope/app/assets/images/.keep +0 -0
  49. data/examples/ruby-on-rails-api/descope/app/assets/images/descope.jpeg +0 -0
  50. data/examples/ruby-on-rails-api/descope/app/assets/images/favicon.ico +0 -0
  51. data/examples/ruby-on-rails-api/descope/app/assets/images/logo192.png +0 -0
  52. data/examples/ruby-on-rails-api/descope/app/assets/images/logo512.png +0 -0
  53. data/examples/ruby-on-rails-api/descope/app/assets/stylesheets/application.bootstrap.scss +67 -0
  54. data/examples/ruby-on-rails-api/descope/app/channels/application_cable/channel.rb +4 -0
  55. data/examples/ruby-on-rails-api/descope/app/channels/application_cable/connection.rb +4 -0
  56. data/examples/ruby-on-rails-api/descope/app/controllers/application_controller.rb +2 -0
  57. data/examples/ruby-on-rails-api/descope/app/controllers/concerns/.keep +0 -0
  58. data/examples/ruby-on-rails-api/descope/app/controllers/homepage_controller.rb +4 -0
  59. data/examples/ruby-on-rails-api/descope/app/controllers/session_controller.rb +66 -0
  60. data/examples/ruby-on-rails-api/descope/app/helpers/application_helper.rb +2 -0
  61. data/examples/ruby-on-rails-api/descope/app/helpers/homepage_helper.rb +2 -0
  62. data/examples/ruby-on-rails-api/descope/app/helpers/session_helper.rb +2 -0
  63. data/examples/ruby-on-rails-api/descope/app/javascript/App.css +53 -0
  64. data/examples/ruby-on-rails-api/descope/app/javascript/application.js +5 -0
  65. data/examples/ruby-on-rails-api/descope/app/javascript/components/App.jsx +4 -0
  66. data/examples/ruby-on-rails-api/descope/app/javascript/components/Dashboard.jsx +60 -0
  67. data/examples/ruby-on-rails-api/descope/app/javascript/components/Home.jsx +27 -0
  68. data/examples/ruby-on-rails-api/descope/app/javascript/components/Login.jsx +45 -0
  69. data/examples/ruby-on-rails-api/descope/app/javascript/components/Profile.jsx +81 -0
  70. data/examples/ruby-on-rails-api/descope/app/javascript/components/index.html +11 -0
  71. data/examples/ruby-on-rails-api/descope/app/javascript/components/index.jsx +24 -0
  72. data/examples/ruby-on-rails-api/descope/app/javascript/controllers/application.js +9 -0
  73. data/examples/ruby-on-rails-api/descope/app/javascript/controllers/index.js +5 -0
  74. data/examples/ruby-on-rails-api/descope/app/javascript/reportWebVitals.js +13 -0
  75. data/examples/ruby-on-rails-api/descope/app/javascript/routes/index.jsx +17 -0
  76. data/examples/ruby-on-rails-api/descope/app/jobs/application_job.rb +7 -0
  77. data/examples/ruby-on-rails-api/descope/app/mailers/application_mailer.rb +4 -0
  78. data/examples/ruby-on-rails-api/descope/app/models/application_record.rb +3 -0
  79. data/examples/ruby-on-rails-api/descope/app/models/concerns/.keep +0 -0
  80. data/examples/ruby-on-rails-api/descope/app/views/homepage/index.html.erb +2 -0
  81. data/examples/ruby-on-rails-api/descope/app/views/layouts/application.html.erb +16 -0
  82. data/examples/ruby-on-rails-api/descope/app/views/layouts/mailer.html.erb +13 -0
  83. data/examples/ruby-on-rails-api/descope/app/views/layouts/mailer.text.erb +1 -0
  84. data/examples/ruby-on-rails-api/descope/app/views/session/index.html.erb +2 -0
  85. data/examples/ruby-on-rails-api/descope/bin/bundle +109 -0
  86. data/examples/ruby-on-rails-api/descope/bin/dev +11 -0
  87. data/examples/ruby-on-rails-api/descope/bin/docker-entrypoint +8 -0
  88. data/examples/ruby-on-rails-api/descope/bin/rails +4 -0
  89. data/examples/ruby-on-rails-api/descope/bin/rake +4 -0
  90. data/examples/ruby-on-rails-api/descope/bin/setup +36 -0
  91. data/examples/ruby-on-rails-api/descope/build.js +30 -0
  92. data/examples/ruby-on-rails-api/descope/config/application.rb +42 -0
  93. data/examples/ruby-on-rails-api/descope/config/boot.rb +4 -0
  94. data/examples/ruby-on-rails-api/descope/config/cable.yml +10 -0
  95. data/examples/ruby-on-rails-api/descope/config/config.yml +9 -0
  96. data/examples/ruby-on-rails-api/descope/config/credentials.yml.enc +1 -0
  97. data/examples/ruby-on-rails-api/descope/config/database.yml +25 -0
  98. data/examples/ruby-on-rails-api/descope/config/environment.rb +5 -0
  99. data/examples/ruby-on-rails-api/descope/config/environments/development.rb +76 -0
  100. data/examples/ruby-on-rails-api/descope/config/environments/production.rb +97 -0
  101. data/examples/ruby-on-rails-api/descope/config/environments/test.rb +64 -0
  102. data/examples/ruby-on-rails-api/descope/config/initializers/assets.rb +13 -0
  103. data/examples/ruby-on-rails-api/descope/config/initializers/content_security_policy.rb +25 -0
  104. data/examples/ruby-on-rails-api/descope/config/initializers/filter_parameter_logging.rb +8 -0
  105. data/examples/ruby-on-rails-api/descope/config/initializers/inflections.rb +16 -0
  106. data/examples/ruby-on-rails-api/descope/config/initializers/load_config.rb +12 -0
  107. data/examples/ruby-on-rails-api/descope/config/initializers/permissions_policy.rb +13 -0
  108. data/examples/ruby-on-rails-api/descope/config/locales/en.yml +31 -0
  109. data/examples/ruby-on-rails-api/descope/config/puma.rb +35 -0
  110. data/examples/ruby-on-rails-api/descope/config/routes.rb +18 -0
  111. data/examples/ruby-on-rails-api/descope/config/storage.yml +34 -0
  112. data/examples/ruby-on-rails-api/descope/config.ru +6 -0
  113. data/examples/ruby-on-rails-api/descope/db/seeds.rb +9 -0
  114. data/examples/ruby-on-rails-api/descope/lib/assets/.keep +0 -0
  115. data/examples/ruby-on-rails-api/descope/lib/tasks/.keep +0 -0
  116. data/examples/ruby-on-rails-api/descope/log/.keep +0 -0
  117. data/examples/ruby-on-rails-api/descope/package-lock.json +19680 -0
  118. data/examples/ruby-on-rails-api/descope/package.json +51 -0
  119. data/examples/ruby-on-rails-api/descope/public/404.html +67 -0
  120. data/examples/ruby-on-rails-api/descope/public/422.html +67 -0
  121. data/examples/ruby-on-rails-api/descope/public/500.html +66 -0
  122. data/examples/ruby-on-rails-api/descope/public/apple-touch-icon-precomposed.png +0 -0
  123. data/examples/ruby-on-rails-api/descope/public/apple-touch-icon.png +0 -0
  124. data/examples/ruby-on-rails-api/descope/public/favicon.ico +0 -0
  125. data/examples/ruby-on-rails-api/descope/public/robots.txt +1 -0
  126. data/examples/ruby-on-rails-api/descope/storage/.keep +0 -0
  127. data/examples/ruby-on-rails-api/descope/tmp/.keep +0 -0
  128. data/examples/ruby-on-rails-api/descope/tmp/pids/.keep +0 -0
  129. data/examples/ruby-on-rails-api/descope/tmp/storage/.keep +0 -0
  130. data/examples/ruby-on-rails-api/descope/vendor/.keep +0 -0
  131. data/examples/ruby-on-rails-api/descope/yarn.lock +10780 -0
  132. data/lib/descope/api/v1/auth/enchantedlink.rb +156 -0
  133. data/lib/descope/api/v1/auth/magiclink.rb +170 -0
  134. data/lib/descope/api/v1/auth/oauth.rb +72 -0
  135. data/lib/descope/api/v1/auth/otp.rb +186 -0
  136. data/lib/descope/api/v1/auth/password.rb +100 -0
  137. data/lib/descope/api/v1/auth/saml.rb +48 -0
  138. data/lib/descope/api/v1/auth/totp.rb +72 -0
  139. data/lib/descope/api/v1/auth.rb +452 -0
  140. data/lib/descope/api/v1/management/access_key.rb +81 -0
  141. data/lib/descope/api/v1/management/audit.rb +82 -0
  142. data/lib/descope/api/v1/management/authz.rb +165 -0
  143. data/lib/descope/api/v1/management/common.rb +147 -0
  144. data/lib/descope/api/v1/management/flow.rb +55 -0
  145. data/lib/descope/api/v1/management/password.rb +58 -0
  146. data/lib/descope/api/v1/management/permission.rb +48 -0
  147. data/lib/descope/api/v1/management/project.rb +53 -0
  148. data/lib/descope/api/v1/management/role.rb +48 -0
  149. data/lib/descope/api/v1/management/scim.rb +206 -0
  150. data/lib/descope/api/v1/management/sso_settings.rb +153 -0
  151. data/lib/descope/api/v1/management/tenant.rb +71 -0
  152. data/lib/descope/api/v1/management/user.rb +619 -0
  153. data/lib/descope/api/v1/management.rb +38 -0
  154. data/lib/descope/api/v1/session.rb +84 -0
  155. data/lib/descope/api/v1.rb +13 -0
  156. data/lib/descope/client.rb +6 -0
  157. data/lib/descope/exception.rb +50 -0
  158. data/lib/descope/mixins/common.rb +129 -0
  159. data/lib/descope/mixins/headers.rb +15 -0
  160. data/lib/descope/mixins/http.rb +133 -0
  161. data/lib/descope/mixins/initializer.rb +80 -0
  162. data/lib/descope/mixins/logging.rb +30 -0
  163. data/lib/descope/mixins/validation.rb +79 -0
  164. data/lib/descope/mixins.rb +22 -0
  165. data/lib/descope/version.rb +7 -0
  166. data/lib/descope.rb +9 -0
  167. data/lib/descope_client.rb +5 -0
  168. data/release-please-config.json +18 -0
  169. data/renovate.json +6 -0
  170. data/spec/factories/user.rb +16 -0
  171. data/spec/lib.descope/api/v1/auth/enchantedlink_spec.rb +159 -0
  172. data/spec/lib.descope/api/v1/auth/magiclink_spec.rb +282 -0
  173. data/spec/lib.descope/api/v1/auth/oauth_spec.rb +117 -0
  174. data/spec/lib.descope/api/v1/auth/otp_spec.rb +285 -0
  175. data/spec/lib.descope/api/v1/auth/password_spec.rb +124 -0
  176. data/spec/lib.descope/api/v1/auth/saml_spec.rb +55 -0
  177. data/spec/lib.descope/api/v1/auth/totp_spec.rb +70 -0
  178. data/spec/lib.descope/api/v1/auth_spec.rb +372 -0
  179. data/spec/lib.descope/api/v1/management/access_key_spec.rb +118 -0
  180. data/spec/lib.descope/api/v1/management/audit_spec.rb +78 -0
  181. data/spec/lib.descope/api/v1/management/authz_spec.rb +336 -0
  182. data/spec/lib.descope/api/v1/management/flow_spec.rb +78 -0
  183. data/spec/lib.descope/api/v1/management/password_spec.rb +25 -0
  184. data/spec/lib.descope/api/v1/management/permission_spec.rb +81 -0
  185. data/spec/lib.descope/api/v1/management/project_spec.rb +63 -0
  186. data/spec/lib.descope/api/v1/management/role_spec.rb +85 -0
  187. data/spec/lib.descope/api/v1/management/scim_spec.rb +312 -0
  188. data/spec/lib.descope/api/v1/management/sso_settings_spec.rb +172 -0
  189. data/spec/lib.descope/api/v1/management/tenant_spec.rb +141 -0
  190. data/spec/lib.descope/api/v1/management/user_spec.rb +667 -0
  191. data/spec/lib.descope/api/v1/session_spec.rb +117 -0
  192. data/spec/lib.descope/client_spec.rb +40 -0
  193. data/spec/spec_helper.rb +72 -0
  194. data/spec/support/client_config.rb +14 -0
  195. data/spec/support/dummy_class.rb +36 -0
  196. data/spec/support/utils.rb +32 -0
  197. metadata +420 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0cbfd697e21207d7a3d5da5c544ad159369e7e51456461532f41608e13022d3d
4
+ data.tar.gz: 7bbf26b7613fb3699933760f428c17e97ed51089fb46567f28fa74334e3f89f1
5
+ SHA512:
6
+ metadata.gz: 70d3208d9fb671fa6878e0e344c0a3638ededf2cf5cd3ba0f35e81931f0279a30ebbbfedbbce0a66c7caf59bb22e8f767e08a354ca6cde8422c77ff25a1d5c2c
7
+ data.tar.gz: f19dfe58eda7ff846949b7bd722cf3d7de09ce806f0bdfb6679ef4a68b2cebb86aa01a51fb80f6f69a927fb21ab9b7d1baec24d87345a68b4c0536ce484564af
@@ -0,0 +1,54 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ build:
13
+ name: Build Ruby SDK
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout Code
17
+ uses: actions/checkout@v4
18
+
19
+ - uses: ruby/setup-ruby@v1
20
+ with:
21
+ # We are not letting this step to run bundle install, we will do it later
22
+ bundler-cache: false
23
+
24
+ - name: Install dependencies
25
+ run: bundle install
26
+
27
+ - name: Run RSpec Test
28
+ run: bundle exec rspec
29
+
30
+ # in order to release use conventional commits
31
+ # $ git commit --allow-empty -m "chore: release 1.0.0" -m "Release-As: 1.0.0" && git push
32
+ # this will open a new PR with the changelog and bump the version
33
+ # Release Please assumes you are using Conventional Commit messages.
34
+ #
35
+ # The most important prefixes you should have in mind are:
36
+ #
37
+ # fix: which represents bug fixes, and correlates to a SemVer patch.
38
+ # feat: which represents a new feature, and correlates to a SemVer minor.
39
+ # feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
40
+ - uses: google-github-actions/release-please-action@v4
41
+ id: release
42
+ if: github.ref == 'refs/heads/main'
43
+
44
+ - name: Publish to RubyGems
45
+ run: |
46
+ mkdir -p $HOME/.gem
47
+ touch $HOME/.gem/credentials
48
+ chmod 0600 $HOME/.gem/credentials
49
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
50
+ gem build *.gemspec
51
+ gem push *.gem
52
+ env:
53
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
54
+ if: ${{ steps.release.outputs.release_created }}
data/.gitignore ADDED
@@ -0,0 +1,59 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+ bin/*
13
+ *.idea/*
14
+ *.iml
15
+ .DS_Store
16
+ # Used by dotenv library to load environment variables.
17
+ # .env
18
+
19
+ # Ignore Byebug command history file.
20
+ .byebug_history
21
+
22
+ ## Specific to RubyMotion:
23
+ .dat*
24
+ .repl_history
25
+ build/
26
+ *.bridgesupport
27
+ build-iPhoneOS/
28
+ build-iPhoneSimulator/
29
+
30
+ ## Specific to RubyMotion (use of CocoaPods):
31
+ #
32
+ # We recommend against adding the Pods directory to your .gitignore. However
33
+ # you should judge for yourself, the pros and cons are mentioned at:
34
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
35
+ #
36
+ # vendor/Pods/
37
+
38
+ ## Documentation cache and generated files:
39
+ /.yardoc/
40
+ /_yardoc/
41
+ /doc/
42
+ /rdoc/
43
+
44
+ ## Environment normalization:
45
+ /.bundle/
46
+ /vendor/bundle
47
+ /lib/bundler/man/
48
+
49
+ # for a library or gem, you might want to ignore these files since the code is
50
+ # intended to run in multiple environments; otherwise, check them in:
51
+ # Gemfile.lock
52
+ # .ruby-version
53
+ # .ruby-gemset
54
+
55
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
56
+ .rvmrc
57
+
58
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
59
+ # .rubocop-https?--*
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.0.4"
3
+ }
data/.rubocop.yml ADDED
@@ -0,0 +1,10 @@
1
+ inherit_from: .rubocop_todo.yml
2
+ require:
3
+ - rubocop-rails
4
+ Rails:
5
+ Enabled: False
6
+ AllCops:
7
+ Exclude:
8
+ - bin/**/*
9
+ - vendor/**/*
10
+ - auth0.gemspec
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,10 @@
1
+ Metrics/MethodLength:
2
+ Enabled: false
3
+ Metrics/BlockLength:
4
+ Enabled: false
5
+ Metrics/LineLength:
6
+ Max: 121
7
+ Metrics/ParameterLists:
8
+ Enabled: false
9
+ Metrics/ModuleLength:
10
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,90 @@
1
+ # Change Log
2
+
3
+ ## [1.0.4](https://github.com/descope/descope-ruby-sdk/compare/descope/v1.0.0...descope/v1.0.4) (2024-02-13)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * Descope Ruby SDK Initial Release. ([d045e0f](https://github.com/descope/descope-ruby-sdk/commit/d045e0fab482789c6579855b9af4d7e8b6928ab4))
9
+
10
+ ## [1.0.0](https://github.com/descope/descope-ruby-sdk/compare/descope-v1.0.0...descope/v1.0.0) (2024-02-13)
11
+
12
+
13
+ ### Features
14
+
15
+ * 1.0.0 first release. ([78eac70](https://github.com/descope/descope-ruby-sdk/commit/78eac70ed7c10cc11bf5ce7d1b5b75f6f7b7041b))
16
+
17
+
18
+ ### Miscellaneous Chores
19
+
20
+ * release 1.0.0 ([2fddf84](https://github.com/descope/descope-ruby-sdk/commit/2fddf8499338ddddee2147de86899286a3bccde6))
21
+ * release 1.0.0 ([b77c6d2](https://github.com/descope/descope-ruby-sdk/commit/b77c6d28c691c3c924b4e862af4c2c5dbf78501c))
22
+ * release 1.0.0 ([cfbb56b](https://github.com/descope/descope-ruby-sdk/commit/cfbb56ba352b454e83cce796d3397e9a58e62617))
23
+ * release 1.0.0 ([c5fe6f7](https://github.com/descope/descope-ruby-sdk/commit/c5fe6f757a2a539e32a88665680448ce06d8354a))
24
+ * release 1.0.0 ([019e89d](https://github.com/descope/descope-ruby-sdk/commit/019e89d34a08b359f7953ca4a48cd03c93817d7f))
25
+ * release 1.0.0 ([3758c6b](https://github.com/descope/descope-ruby-sdk/commit/3758c6b99ef0992e6ed02d9eec092102680403e5))
26
+ * release 1.0.0 ([292a95e](https://github.com/descope/descope-ruby-sdk/commit/292a95e393c44b525a212da91de91736573e59f3))
27
+ * release 1.0.0 ([1a76df2](https://github.com/descope/descope-ruby-sdk/commit/1a76df21650ea34ac447381fb97da94bacf234d0))
28
+ * release 1.0.0 ([2d8450e](https://github.com/descope/descope-ruby-sdk/commit/2d8450e24a0b81196e083ddd588562a300bfa5f1))
29
+ * release 1.0.0 ([3dc5abc](https://github.com/descope/descope-ruby-sdk/commit/3dc5abc9e0f64e7b950b01e84098d6eccce649c3))
30
+ * release 1.0.0 ([1c25d9f](https://github.com/descope/descope-ruby-sdk/commit/1c25d9f07f7f2d34474db8e471e80bba70bf1ee4))
31
+ * release 1.0.0 ([9cf28fa](https://github.com/descope/descope-ruby-sdk/commit/9cf28fac2f1e2b0d026a1ecfd1103caa8feaf35d))
32
+ * release 1.0.0 ([08af782](https://github.com/descope/descope-ruby-sdk/commit/08af782c6915abcf2c3c6dcf02446951787ca290))
33
+ * release 1.0.0 ([bff65f5](https://github.com/descope/descope-ruby-sdk/commit/bff65f52b4f618e1b26c3a16639cfea0762dfcc7))
34
+
35
+ ## [1.0.0](https://github.com/descope/descope-ruby-sdk/compare/descope-v1.0.0...descope/v1.0.0) (2024-02-13)
36
+
37
+
38
+ ### Features
39
+
40
+ * 1.0.0 first release. ([78eac70](https://github.com/descope/descope-ruby-sdk/commit/78eac70ed7c10cc11bf5ce7d1b5b75f6f7b7041b))
41
+
42
+
43
+ ### Miscellaneous Chores
44
+
45
+ * release 1.0.0 ([cfbb56b](https://github.com/descope/descope-ruby-sdk/commit/cfbb56ba352b454e83cce796d3397e9a58e62617))
46
+ * release 1.0.0 ([c5fe6f7](https://github.com/descope/descope-ruby-sdk/commit/c5fe6f757a2a539e32a88665680448ce06d8354a))
47
+ * release 1.0.0 ([019e89d](https://github.com/descope/descope-ruby-sdk/commit/019e89d34a08b359f7953ca4a48cd03c93817d7f))
48
+ * release 1.0.0 ([3758c6b](https://github.com/descope/descope-ruby-sdk/commit/3758c6b99ef0992e6ed02d9eec092102680403e5))
49
+ * release 1.0.0 ([292a95e](https://github.com/descope/descope-ruby-sdk/commit/292a95e393c44b525a212da91de91736573e59f3))
50
+ * release 1.0.0 ([1a76df2](https://github.com/descope/descope-ruby-sdk/commit/1a76df21650ea34ac447381fb97da94bacf234d0))
51
+ * release 1.0.0 ([2d8450e](https://github.com/descope/descope-ruby-sdk/commit/2d8450e24a0b81196e083ddd588562a300bfa5f1))
52
+ * release 1.0.0 ([3dc5abc](https://github.com/descope/descope-ruby-sdk/commit/3dc5abc9e0f64e7b950b01e84098d6eccce649c3))
53
+ * release 1.0.0 ([1c25d9f](https://github.com/descope/descope-ruby-sdk/commit/1c25d9f07f7f2d34474db8e471e80bba70bf1ee4))
54
+ * release 1.0.0 ([9cf28fa](https://github.com/descope/descope-ruby-sdk/commit/9cf28fac2f1e2b0d026a1ecfd1103caa8feaf35d))
55
+ * release 1.0.0 ([08af782](https://github.com/descope/descope-ruby-sdk/commit/08af782c6915abcf2c3c6dcf02446951787ca290))
56
+ * release 1.0.0 ([bff65f5](https://github.com/descope/descope-ruby-sdk/commit/bff65f52b4f618e1b26c3a16639cfea0762dfcc7))
57
+
58
+ ## [1.0.0](https://github.com/descope/descope-ruby-sdk/compare/descope-v1.0.0...descope/v1.0.0) (2024-02-13)
59
+
60
+
61
+ ### Features
62
+
63
+ * 1.0.0 first release. ([78eac70](https://github.com/descope/descope-ruby-sdk/commit/78eac70ed7c10cc11bf5ce7d1b5b75f6f7b7041b))
64
+
65
+
66
+ ### Miscellaneous Chores
67
+
68
+ * release 1.0.0 ([292a95e](https://github.com/descope/descope-ruby-sdk/commit/292a95e393c44b525a212da91de91736573e59f3))
69
+ * release 1.0.0 ([1a76df2](https://github.com/descope/descope-ruby-sdk/commit/1a76df21650ea34ac447381fb97da94bacf234d0))
70
+ * release 1.0.0 ([2d8450e](https://github.com/descope/descope-ruby-sdk/commit/2d8450e24a0b81196e083ddd588562a300bfa5f1))
71
+ * release 1.0.0 ([3dc5abc](https://github.com/descope/descope-ruby-sdk/commit/3dc5abc9e0f64e7b950b01e84098d6eccce649c3))
72
+ * release 1.0.0 ([1c25d9f](https://github.com/descope/descope-ruby-sdk/commit/1c25d9f07f7f2d34474db8e471e80bba70bf1ee4))
73
+ * release 1.0.0 ([9cf28fa](https://github.com/descope/descope-ruby-sdk/commit/9cf28fac2f1e2b0d026a1ecfd1103caa8feaf35d))
74
+ * release 1.0.0 ([08af782](https://github.com/descope/descope-ruby-sdk/commit/08af782c6915abcf2c3c6dcf02446951787ca290))
75
+ * release 1.0.0 ([bff65f5](https://github.com/descope/descope-ruby-sdk/commit/bff65f52b4f618e1b26c3a16639cfea0762dfcc7))
76
+
77
+ ## [1.0.0](https://github.com/descope/descope-ruby-sdk/compare/descope-v1.0.0...descope/v1.0.0) (2024-02-13)
78
+
79
+
80
+ ### Features
81
+
82
+ * 1.0.0 first release. ([78eac70](https://github.com/descope/descope-ruby-sdk/commit/78eac70ed7c10cc11bf5ce7d1b5b75f6f7b7041b))
83
+
84
+
85
+ ### Miscellaneous Chores
86
+
87
+ * release 1.0.0 ([bff65f5](https://github.com/descope/descope-ruby-sdk/commit/bff65f52b4f618e1b26c3a16639cfea0762dfcc7))
88
+
89
+ ## [1.0.0]
90
+ - Initial release
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ group :development do
5
+ gem 'terminal-notifier-guard', require: false unless ENV['CIRCLECI']
6
+ gem 'coveralls', require: false
7
+ gem 'rubocop', require: false
8
+ gem 'rubocop-rails', require: false
9
+ gem 'irb', require: false
10
+ end
11
+
12
+ group :test do
13
+ gem 'webmock', require: false
14
+ gem 'simplecov-cobertura'
15
+ gem 'timecop', require: false
16
+ gem 'rack-test', require: false
17
+ gem 'dotenv', require: false
18
+ gem 'super_diff', require: false
19
+ gem 'factory_bot', require: 'false'
20
+ gem 'selenium-webdriver', require: false
21
+ gem 'rotp', require: false
22
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,204 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ descope (1.0.4)
5
+ addressable (~> 2.8)
6
+ jwt (~> 2.7)
7
+ rest-client (~> 2.1)
8
+ retryable (~> 3.0)
9
+ zache (~> 0.12)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ activesupport (7.1.3)
15
+ base64
16
+ bigdecimal
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ connection_pool (>= 2.2.5)
19
+ drb
20
+ i18n (>= 1.6, < 2)
21
+ minitest (>= 5.1)
22
+ mutex_m
23
+ tzinfo (~> 2.0)
24
+ addressable (2.8.6)
25
+ public_suffix (>= 2.0.2, < 6.0)
26
+ ast (2.4.2)
27
+ attr_extras (7.1.0)
28
+ base64 (0.2.0)
29
+ bigdecimal (3.1.6)
30
+ concurrent-ruby (1.2.3)
31
+ connection_pool (2.4.1)
32
+ coveralls (0.7.1)
33
+ multi_json (~> 1.3)
34
+ rest-client
35
+ simplecov (>= 0.7)
36
+ term-ansicolor
37
+ thor
38
+ crack (0.4.5)
39
+ rexml
40
+ diff-lcs (1.5.0)
41
+ docile (1.4.0)
42
+ domain_name (0.6.20240107)
43
+ dotenv (2.8.1)
44
+ drb (2.2.0)
45
+ ruby2_keywords
46
+ factory_bot (6.4.5)
47
+ activesupport (>= 5.0.0)
48
+ faker (2.23.0)
49
+ i18n (>= 1.8.11, < 2)
50
+ fuubar (2.5.1)
51
+ rspec-core (~> 3.0)
52
+ ruby-progressbar (~> 1.4)
53
+ hashdiff (1.1.0)
54
+ http-accept (1.7.0)
55
+ http-cookie (1.0.5)
56
+ domain_name (~> 0.5)
57
+ i18n (1.14.1)
58
+ concurrent-ruby (~> 1.0)
59
+ io-console (0.7.2)
60
+ irb (1.11.1)
61
+ rdoc
62
+ reline (>= 0.4.2)
63
+ json (2.7.1)
64
+ jwt (2.7.1)
65
+ language_server-protocol (3.17.0.3)
66
+ mime-types (3.5.2)
67
+ mime-types-data (~> 3.2015)
68
+ mime-types-data (3.2023.1205)
69
+ minitest (5.21.2)
70
+ multi_json (1.15.0)
71
+ mutex_m (0.2.0)
72
+ netrc (0.11.0)
73
+ optimist (3.1.0)
74
+ parallel (1.24.0)
75
+ parser (3.3.0.4)
76
+ ast (~> 2.4.1)
77
+ racc
78
+ patience_diff (1.2.0)
79
+ optimist (~> 3.0)
80
+ psych (5.1.2)
81
+ stringio
82
+ public_suffix (5.0.4)
83
+ racc (1.7.3)
84
+ rack (3.0.8)
85
+ rack-test (2.1.0)
86
+ rack (>= 1.3)
87
+ rainbow (3.1.1)
88
+ rake (13.1.0)
89
+ rdoc (6.6.2)
90
+ psych (>= 4.0.0)
91
+ regexp_parser (2.9.0)
92
+ reline (0.4.2)
93
+ io-console (~> 0.5)
94
+ rest-client (2.1.0)
95
+ http-accept (>= 1.7.0, < 2.0)
96
+ http-cookie (>= 1.0.2, < 2.0)
97
+ mime-types (>= 1.16, < 4.0)
98
+ netrc (~> 0.8)
99
+ retryable (3.0.5)
100
+ rexml (3.2.6)
101
+ rotp (6.3.0)
102
+ rspec (3.12.0)
103
+ rspec-core (~> 3.12.0)
104
+ rspec-expectations (~> 3.12.0)
105
+ rspec-mocks (~> 3.12.0)
106
+ rspec-core (3.12.2)
107
+ rspec-support (~> 3.12.0)
108
+ rspec-expectations (3.12.3)
109
+ diff-lcs (>= 1.2.0, < 2.0)
110
+ rspec-support (~> 3.12.0)
111
+ rspec-mocks (3.12.6)
112
+ diff-lcs (>= 1.2.0, < 2.0)
113
+ rspec-support (~> 3.12.0)
114
+ rspec-support (3.12.1)
115
+ rubocop (1.60.1)
116
+ json (~> 2.3)
117
+ language_server-protocol (>= 3.17.0)
118
+ parallel (~> 1.10)
119
+ parser (>= 3.3.0.2)
120
+ rainbow (>= 2.2.2, < 4.0)
121
+ regexp_parser (>= 1.8, < 3.0)
122
+ rexml (>= 3.2.5, < 4.0)
123
+ rubocop-ast (>= 1.30.0, < 2.0)
124
+ ruby-progressbar (~> 1.7)
125
+ unicode-display_width (>= 2.4.0, < 3.0)
126
+ rubocop-ast (1.30.0)
127
+ parser (>= 3.2.1.0)
128
+ rubocop-rails (2.23.1)
129
+ activesupport (>= 4.2.0)
130
+ rack (>= 1.1)
131
+ rubocop (>= 1.33.0, < 2.0)
132
+ rubocop-ast (>= 1.30.0, < 2.0)
133
+ ruby-progressbar (1.13.0)
134
+ ruby2_keywords (0.0.5)
135
+ rubyzip (2.3.2)
136
+ selenium-webdriver (4.17.0)
137
+ base64 (~> 0.2)
138
+ rexml (~> 3.2, >= 3.2.5)
139
+ rubyzip (>= 1.2.2, < 3.0)
140
+ websocket (~> 1.0)
141
+ simplecov (0.22.0)
142
+ docile (~> 1.1)
143
+ simplecov-html (~> 0.11)
144
+ simplecov_json_formatter (~> 0.1)
145
+ simplecov-cobertura (2.1.0)
146
+ rexml
147
+ simplecov (~> 0.19)
148
+ simplecov-html (0.12.3)
149
+ simplecov_json_formatter (0.1.4)
150
+ stringio (3.1.0)
151
+ super_diff (0.10.0)
152
+ attr_extras (>= 6.2.4)
153
+ diff-lcs
154
+ patience_diff
155
+ sync (0.5.0)
156
+ term-ansicolor (1.7.1)
157
+ tins (~> 1.0)
158
+ terminal-notifier-guard (1.7.0)
159
+ thor (1.3.0)
160
+ timecop (0.9.8)
161
+ tins (1.32.1)
162
+ sync
163
+ tzinfo (2.0.6)
164
+ concurrent-ruby (~> 1.0)
165
+ unicode-display_width (2.5.0)
166
+ webmock (3.19.1)
167
+ addressable (>= 2.8.0)
168
+ crack (>= 0.3.2)
169
+ hashdiff (>= 0.4.0, < 2.0.0)
170
+ websocket (1.2.10)
171
+ zache (0.13.1)
172
+
173
+ PLATFORMS
174
+ arm64-darwin-22
175
+ arm64-darwin-23
176
+ x86_64-darwin-23
177
+ x86_64-linux
178
+
179
+ DEPENDENCIES
180
+ bundler
181
+ concurrent-ruby (~> 1.1)
182
+ coveralls
183
+ descope!
184
+ dotenv
185
+ factory_bot
186
+ faker (~> 2.0)
187
+ fuubar (~> 2.0)
188
+ irb
189
+ rack-test
190
+ rake (~> 13.0)
191
+ rotp
192
+ rspec (~> 3.11)
193
+ rubocop
194
+ rubocop-rails
195
+ selenium-webdriver
196
+ simplecov (~> 0.9)
197
+ simplecov-cobertura
198
+ super_diff
199
+ terminal-notifier-guard
200
+ timecop
201
+ webmock
202
+
203
+ BUNDLED WITH
204
+ 2.4.19
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Descope
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.