rodauth-oauth 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fc6216412a63e6ce3b6beecf2d476b50b8e3445026927ce40cdc649023c1b15
4
- data.tar.gz: d5f2f5ea24ade170615894f352a28ed428fac7a0bb39db4506d8343ead0c2e07
3
+ metadata.gz: b6c3f9dbc4dcbd3639626e34ed21a624b89c952e53a76e09a364665860af2460
4
+ data.tar.gz: c3fa0024cfd14e9f5c91f1f91729e376aeaf7eef5e2dd6e7d6cfef28eb553c25
5
5
  SHA512:
6
- metadata.gz: 984a083c4e8814244c8566106a757095ae046b049ad76c6fa2947e5a7d12b0bc63c5fba621c1a0674e3deb4246a7f09d228ee51bb0e4f16a81c25bcd1a28d04c
7
- data.tar.gz: 0aafc4b37f059b134ce08940d8e38d9ed3afb577e80c790b646c45ce0792ba6d833582ac53c036f9449ee3b130f77e4f5fc9098ce1ed3614b969dd78219eecba
6
+ metadata.gz: 0d85b01de165f5daf55cf278045e88cb90b7bda144b565384e98d56e18c45f759bb9455914e39f6f33034ce4517d9c526b32820b1b4a5468c344b7f0ff295490
7
+ data.tar.gz: 64678467af584d06240570bdd88cc35d191770d8b6bdae42a9b44300dac80233c7c2e380ac91e0ec00e90dce4f1ea9c847a8597835ecaae1bb1285e3b614790d
@@ -0,0 +1,13 @@
1
+ ### 1.6.1
2
+
3
+ #### Bugfixes
4
+
5
+ Fixed regressions in rails generated templates:
6
+
7
+ * some `:oauth_dpop` form fields not being rendered;
8
+ * `check_box_tag` rails helper usage was wrongly setting all checkboxes to "checked"
9
+
10
+ #### Chore
11
+
12
+ * Updated latest features (`:oauth_dpop`) options documentation.
13
+ * rails tests will now exercise the rails generated templates again.
@@ -4,7 +4,7 @@
4
4
  <% end %>
5
5
  <% application_uri = rodauth.oauth_application[rodauth.oauth_applications_homepage_url_column] %>
6
6
  <% application_name = application_uri ? link_to(rodauth.oauth_application[rodauth.oauth_applications_name_column], application_uri) : rodauth.oauth_application[rodauth.oauth_applications_name_column] %>
7
- <p class="lead"><%= rodauth.authorize_page_lead(name: application_name) %></p>
7
+ <p class="lead"><%= rodauth.authorize_page_lead(name: application_name).html_safe %></p>
8
8
 
9
9
  <div class="list-group">
10
10
  <% if rodauth.oauth_application[rodauth.oauth_applications_tos_uri_column] %>
@@ -32,7 +32,7 @@
32
32
  <%= hidden_field_tag "scope[]", scope %>
33
33
  <% else %>
34
34
  <div class="form-check">
35
- <%= check_box_tag "scope[]", scope, id: scope, class: "form-check-input" %>
35
+ <%= check_box_tag "scope[]", scope, false, id: scope, class: "form-check-input" %>
36
36
  <%= label_tag scope, scope, class: "form-check-label" %>
37
37
  </div>
38
38
  <% end %>
@@ -79,7 +79,7 @@
79
79
  <%= hidden_field_tag :registration, rodauth.param_or_nil("registration") %>
80
80
  <% end %>
81
81
  <% end %>
82
- <% if rodauth.features.include?(:oidc) %>
82
+ <% if rodauth.features.include?(:oauth_dpop) %>
83
83
  <% if rodauth.param_or_nil("dpop_jkt") %>
84
84
  <%= hidden_field_tag :dpop_jkt, rodauth.param_or_nil("dpop_jkt") %>
85
85
  <% end %>
@@ -40,7 +40,7 @@
40
40
  <% end %>
41
41
  <% rodauth.oauth_application_scopes.each do |scope| %>
42
42
  <div class="form-check">
43
- <%= check_box_tag "scopes[]", scope, id: scope, class: "form-check-input" %>
43
+ <%= check_box_tag "scopes[]", scope, false, id: scope, class: "form-check-input" %>
44
44
  <%= scope %>
45
45
  </div>
46
46
  <% end %>
@@ -26,5 +26,5 @@
26
26
  <% end %>
27
27
  </tbody>
28
28
  </table>
29
- <%= rodauth.oauth_management_pagination_links(oauth_applications_ds) %>
29
+ <%= rodauth.oauth_management_pagination_links(oauth_applications_ds).html_safe %>
30
30
  <% end %>
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rodauth
4
4
  module OAuth
5
- VERSION = "1.6.0"
5
+ VERSION = "1.6.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodauth-oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-02 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rodauth
@@ -75,6 +75,7 @@ extra_rdoc_files:
75
75
  - doc/release_notes/1_4_0.md
76
76
  - doc/release_notes/1_5_0.md
77
77
  - doc/release_notes/1_6_0.md
78
+ - doc/release_notes/1_6_1.md
78
79
  files:
79
80
  - CHANGELOG.md
80
81
  - LICENSE.txt
@@ -121,6 +122,7 @@ files:
121
122
  - doc/release_notes/1_4_0.md
122
123
  - doc/release_notes/1_5_0.md
123
124
  - doc/release_notes/1_6_0.md
125
+ - doc/release_notes/1_6_1.md
124
126
  - lib/generators/rodauth/oauth/install_generator.rb
125
127
  - lib/generators/rodauth/oauth/templates/app/models/oauth_application.rb
126
128
  - lib/generators/rodauth/oauth/templates/app/models/oauth_grant.rb