descope 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/publish-gem.yaml +30 -5
  3. data/Gemfile +3 -3
  4. data/Gemfile.lock +12 -20
  5. data/README.md +18 -3
  6. data/descope.gemspec +25 -20
  7. data/examples/ruby/.ruby-version +1 -0
  8. data/examples/ruby/access_key_app.rb +4 -3
  9. data/examples/ruby/enchantedlink_app.rb +1 -0
  10. data/examples/ruby/magiclink_app.rb +1 -0
  11. data/examples/ruby/management/.ruby-version +1 -0
  12. data/examples/ruby/management/Gemfile +2 -2
  13. data/examples/ruby/management/access_key_app.rb +2 -0
  14. data/examples/ruby/management/audit_app.rb +32 -8
  15. data/examples/ruby/management/authz_app.rb +1 -0
  16. data/examples/ruby/management/flow_app.rb +1 -0
  17. data/examples/ruby/management/permission_app.rb +3 -2
  18. data/examples/ruby/management/role_app.rb +3 -2
  19. data/examples/ruby/management/tenant_app.rb +1 -0
  20. data/examples/ruby/management/user_app.rb +1 -0
  21. data/examples/ruby/oauth_app.rb +1 -0
  22. data/examples/ruby/otp_app.rb +38 -12
  23. data/examples/ruby/password_app.rb +8 -7
  24. data/examples/ruby/saml_app.rb +1 -0
  25. data/examples/ruby/version_check.rb +17 -0
  26. data/examples/ruby-on-rails-api/descope/Gemfile +3 -1
  27. data/examples/ruby-on-rails-api/descope/Gemfile.lock +121 -90
  28. data/examples/ruby-on-rails-api/descope/README.md +18 -18
  29. data/examples/ruby-on-rails-api/descope/app/assets/builds/application.css +20092 -23
  30. data/examples/ruby-on-rails-api/descope/app/assets/builds/application.js +0 -1
  31. data/examples/ruby-on-rails-api/descope/app/assets/builds/components/index.js +0 -14
  32. data/examples/ruby-on-rails-api/descope/package-lock.json +1021 -19306
  33. data/examples/ruby-on-rails-api/descope/package.json +8 -16
  34. data/examples/ruby-on-rails-api/descope/yarn.lock +459 -10641
  35. data/lib/descope/api/v1/auth/otp.rb +21 -14
  36. data/lib/descope/api/v1/auth.rb +17 -20
  37. data/lib/descope/api/v1/management/audit.rb +24 -0
  38. data/lib/descope/api/v1/management/common.rb +1 -0
  39. data/lib/descope/mixins/common.rb +5 -2
  40. data/lib/descope/mixins/validation.rb +21 -6
  41. data/lib/descope/version.rb +1 -1
  42. data/spec/integration/lib.descope/api/v1/auth/otp_spec.rb +72 -7
  43. data/spec/integration/lib.descope/api/v1/management/audit_spec.rb +36 -0
  44. data/spec/integration/lib.descope/api/v1/management/roles_spec.rb +1 -1
  45. data/spec/lib.descope/api/v1/auth/otp_spec.rb +176 -18
  46. data/spec/lib.descope/api/v1/auth_spec.rb +1 -1
  47. data/spec/lib.descope/api/v1/management/audit_spec.rb +92 -0
  48. metadata +25 -133
  49. data/examples/ruby-on-rails-api/descope/app/assets/builds/reportWebVitals.js +0 -211
  50. data/examples/ruby-on-rails-api/descope/app/assets/builds/reportWebVitals.js.map +0 -7
@@ -40266,7 +40266,6 @@ document.addEventListener("turbo:load", () => {
40266
40266
  root.render(
40267
40267
  /* @__PURE__ */ import_react11.default.createElement(import_react11.default.StrictMode, null, /* @__PURE__ */ import_react11.default.createElement(U5, { projectId: "P2aVGmQvQzSLJwP3ttcxO12tmQXk" }, /* @__PURE__ */ import_react11.default.createElement(App_default, null)))
40268
40268
  );
40269
- console.log("blah");
40270
40269
  });
40271
40270
  reportWebVitals_default();
40272
40271
 
@@ -28135,19 +28135,6 @@ var routes_default = /* @__PURE__ */ import_react9.default.createElement(Browser
28135
28135
  // app/javascript/components/App.jsx
28136
28136
  var App_default = (props) => /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, routes_default);
28137
28137
 
28138
- // app/javascript/reportWebVitals.js
28139
- var reportWebVitals = (onPerfEntry) => {
28140
- if (onPerfEntry && onPerfEntry instanceof Function) {
28141
- Promise.resolve().then(() => (init_web_vitals(), web_vitals_exports)).then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
28142
- getCLS(onPerfEntry);
28143
- getFID(onPerfEntry);
28144
- getFCP(onPerfEntry);
28145
- getLCP(onPerfEntry);
28146
- getTTFB(onPerfEntry);
28147
- });
28148
- }
28149
- };
28150
- var reportWebVitals_default = reportWebVitals;
28151
28138
 
28152
28139
  // app/javascript/components/index.jsx
28153
28140
  console.log("index component");
@@ -28157,7 +28144,6 @@ document.addEventListener("turbo:load", () => {
28157
28144
  root.render(
28158
28145
  /* @__PURE__ */ import_react11.default.createElement(import_react11.default.StrictMode, null, /* @__PURE__ */ import_react11.default.createElement(U5, { projectId: "P2aVGmQvQzSLJwP3ttcxO12tmQXk" }, /* @__PURE__ */ import_react11.default.createElement(App_default, null)))
28159
28146
  );
28160
- console.log("blah");
28161
28147
  });
28162
28148
  reportWebVitals_default();
28163
28149
  /*! Bundled license information: