gamora 0.14.1 → 0.16.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b86b5408e3b789413964ee3f2bda90e09a720f208e0fd0e8321e201bd4b7dbf3
4
- data.tar.gz: f4ffab58834e0d101e429bedd2eda712eea88c4c249e32b5705292aac38da64a
3
+ metadata.gz: 8cdd1d24844283f1b68585f88db113e2a781fe63a20d3818545a514ac94b55f9
4
+ data.tar.gz: ca519e448247975a382d26b16a4988679da36580f41c2f5e9836666829bd5fab
5
5
  SHA512:
6
- metadata.gz: 5645b009f2fd9547d3e1039c3997c21f7a2ea57bf9a11fdd71fbe38cb0ef7cb5e1bb2ce4e689bd908149252b7c4c12319787382c0587a09addd3f17b6c883aa3
7
- data.tar.gz: 0b004457b47a11f2f45abbb87497fb1e91c5c46feb8b57a16765380903847177399dffb3d39f5b6fdc68fe5035d1ca602c90997a14d34a828fbd63f9ef244b6d
6
+ metadata.gz: 57ed1e09897db66361e43fea58fd8b8ae825ce2352678269512ac6f941390883770ec0f9106620fe21af42c20912d0cc272ac5a456caa9d24a85b871428c9083
7
+ data.tar.gz: 5d17e1d54582e99155ec028756cdb4afcc624fef215483eb750d884595fcdd2a8eac6153e8f9502ad8e438b82ad45050f2bc1c7fefcbb5571b27171aca112f66
@@ -3,6 +3,7 @@
3
3
  module Gamora
4
4
  module AuthorizationUrl
5
5
  ALLOWED_PARAMS = %i[
6
+ sp
6
7
  scope
7
8
  state
8
9
  theme
@@ -12,6 +13,7 @@ module Gamora
12
13
  branding
13
14
  ui_locales
14
15
  allow_create
16
+ allow_amco_badge
15
17
  ].freeze
16
18
 
17
19
  def authorization_url(params, extra_params = {})
@@ -34,7 +36,8 @@ module Gamora
34
36
  strategy: Configuration.default_strategy,
35
37
  branding: Configuration.default_branding,
36
38
  ui_locales: Configuration.ui_locales.call,
37
- allow_create: Configuration.allow_create
39
+ allow_create: Configuration.allow_create.to_s,
40
+ allow_amco_badge: Configuration.allow_amco_badge.to_s
38
41
  }
39
42
  end
40
43
 
@@ -18,6 +18,7 @@ module Gamora
18
18
  mattr_accessor :default_theme, default: "default"
19
19
  mattr_accessor :ui_locales, default: -> { I18n.locale }
20
20
  mattr_accessor :allow_create, default: true
21
+ mattr_accessor :allow_amco_badge, default: false
21
22
  mattr_accessor :userinfo_cache_expires_in, default: 1.minute
22
23
  mattr_accessor :introspect_cache_expires_in, default: 0.seconds
23
24
  mattr_accessor :authorization_method, default: ->(user) { user }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gamora
4
- VERSION = "0.14.1"
4
+ VERSION = "0.16.0"
5
5
  end
@@ -20,6 +20,7 @@ Gamora.setup do |config|
20
20
  # config.default_theme = "default"
21
21
  # config.ui_locales = -> { I18n.locale }
22
22
  # config.allow_create = true
23
+ # config.allow_amco_badge = false
23
24
  # config.userinfo_cache_expires_in = 1.minute
24
25
  # config.introspect_cache_expires_in = 0.seconds
25
26
  # config.authorization_method = ->(user) { user.authorized? }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Gutiérrez
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-03 00:00:00.000000000 Z
10
+ date: 2025-07-04 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: oauth2