rails_keycloak_authorization 0.0.3 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 249d3e51d6008d55fa812918a6733d68bbd3d146cbe3692ccbf68c402a7693ea
|
4
|
+
data.tar.gz: d7d6e67c74a6e5eca1ae6f3331edd93875d138e3f859fc53c05d1e79178985ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de462bceeb0c91d60a1fd0c92c09f0dff0e62ee83e4d37c5f1e4626bbf61ab2ff1ac9e6edd3b3202811f830cdca911ed59ec0101080010f5e9a538ec67a0eb57
|
7
|
+
data.tar.gz: a93daccac290208e450be0177644ea73f9e1852a4e6024c597fcbfbad9ed4ee0fc107095cfd5df27f6a76747bd9ac5af90a68e49e7000bf305069f53145fa673
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|

|
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
|
|
@@ -100,14 +100,14 @@ module RailsKeycloakAuthorization
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def realm_name
|
103
|
-
|
103
|
+
RailsKeycloakAuthorization.keycloak_auth_client_realm_name
|
104
104
|
end
|
105
105
|
|
106
106
|
def openid_client
|
107
107
|
KeycloakAdmin
|
108
108
|
.realm(realm_name)
|
109
109
|
.clients
|
110
|
-
.find_by_client_id(
|
110
|
+
.find_by_client_id(RailsKeycloakAuthorization.keycloak_auth_client_id)
|
111
111
|
end
|
112
112
|
|
113
113
|
def resource_type_for_controller
|
@@ -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
|
+
version: 0.0.5
|
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-
|
11
|
+
date: 2024-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.5.
|
124
|
+
rubygems_version: 3.5.16
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: RailsKeycloakAuthorization, Rack Based, Policy Enforcement Point (PEP) implementation
|