rails_keycloak_authorization 0.0.4 → 0.0.6

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: 122890dbd82fc49d04abde438a1fb4b30861a5c87160b799516ebd6400ad6707
4
- data.tar.gz: 2cf108a6f02b11e030e68ee800c8b9f8917d436703d8719a1732f4968dda8dd6
3
+ metadata.gz: 17dda8a06488ccc76c007013124249d2d22043e4be7086f57df2c2730f68f14c
4
+ data.tar.gz: fcbae1b67b24e045875dacc1586b85cc5c962f19eee0cc8424e2f289366f40da
5
5
  SHA512:
6
- metadata.gz: fdddaca8f60e5260114f3e10ef86d73d45d6bc38b4080626c3ea3463828048e83cd407ab5718469252b776a80ef848acbb3ba56af97dc1a5565563c0992446c4
7
- data.tar.gz: 9eec75e13109fa1579c74d54b89e0117d48aba087dd0bd332eafc6c2ba10d6d207b1597c00397cb3eb8c64bd7d2000b4a1eadab195e30f51051bd84130741145
6
+ metadata.gz: f5a7430dc0e83843b80a7f8ead9c70848a069b73a80a14e170785dcea5e2e5adcd1024201baa726f423c00aa4834e4cfad6904fa5f36618be39c8eea2a268a35
7
+ data.tar.gz: 4ac018e74c3e80c86d2580785863e741697ceb0a8e7290b9feb6f3e1d00615df4690a080e82a93fefd5ff31e44ad8fbd04e1b9760e96a2a4f91db5d5ac56ad39
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ![Github Actions CI workflow](https://github.com/tillawy/rails_keycloak_authorization/actions/workflows/ruby.yml/badge.svg)
4
4
 
5
+ You can find more in this [blog](https://dev.to/tillawy/rails-and-keycloak-authentication-authorization-part-three-n4g).
5
6
 
6
7
  Rails middleware to authorize requests using [Keycloak](https://www.keycloak.org) and gem [keycloak-admin-ruby](https://github.com/looorent/keycloak-admin-ruby).
7
8
 
@@ -1,3 +1,3 @@
1
1
  module RailsKeycloakAuthorization
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -9,7 +9,7 @@ module RailsKeycloakAuthorization
9
9
  mattr_accessor :keycloak_admin_client_secret
10
10
  mattr_accessor :keycloak_auth_client_id
11
11
  mattr_accessor :keycloak_auth_client_realm_name
12
- mattr_accessor :match_patterns
12
+ mattr_accessor :match_patterns, default: []
13
13
 
14
14
  class Middleware
15
15
  def initialize(app)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_keycloak_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohammed O. Tillawy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-17 00:00:00.000000000 Z
11
+ date: 2024-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '7.1'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 7.1.3.4
19
+ version: '8'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '7.1'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 7.1.3.4
26
+ version: '8'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: keycloak-admin
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -121,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
115
  - !ruby/object:Gem::Version
122
116
  version: '0'
123
117
  requirements: []
124
- rubygems_version: 3.5.11
118
+ rubygems_version: 3.5.22
125
119
  signing_key:
126
120
  specification_version: 4
127
121
  summary: RailsKeycloakAuthorization, Rack Based, Policy Enforcement Point (PEP) implementation