clonk 2.1.0 → 2.1.1
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 +4 -4
- data/lib/clonk/connection.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d93e0ba4010b58d01737ca036d65fe5c2e2fb2fefcb1d59f49efd90cb5a2c646
|
|
4
|
+
data.tar.gz: ab35ba52093b55b46c10b47f0c26915b938506988414edcf1ffbaf17e28aad25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7473e0e24c47a096be7bc9504da34e2650872bcbbc0fc1916cee43ad1d35337c16f3d3be231894b4f18b43b011a28974628bcf04b9378a1c17d80ca9bc3ca7b7
|
|
7
|
+
data.tar.gz: 275f6b6b4105b01712a4ae854168ec81471086973b834c523f8e953ac1320ed8692d299349c73d135d10bc2fdc0abe157e43f061b69e47fd3ab8c07c515c0e74
|
data/lib/clonk/connection.rb
CHANGED
|
@@ -164,5 +164,13 @@ module Clonk
|
|
|
164
164
|
)
|
|
165
165
|
"#{client_url}/authz/resource-server/#{prefix}/#{permission.id}"
|
|
166
166
|
end
|
|
167
|
+
|
|
168
|
+
def logout_url(realm_id: @realm.name, client_id: @client_id, redirect_uri:)
|
|
169
|
+
"#{@base_url}/realms/#{realm_id}/protocol/openid-connect/logout?redirect_uri=#{CGI.escape(redirect_uri)}"
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def login_url(realm_id: @realm.name, redirect_uri:, client_id: @client_id)
|
|
173
|
+
"#{@base_url}/realms/#{realm_id}/protocol/openid-connect/auth?response_type=code&client_id=#{client_id}&redirect_uri=#{CGI.escape(redirect_uri)}"
|
|
174
|
+
end
|
|
167
175
|
end
|
|
168
176
|
end
|