reclaim-oidc 0.0.1 → 0.0.2
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/bin/reclaim-oidc +2 -1
- data/lib/reclaim_oidc.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 383f73a7aac6866e6fdc8389278bf87a08bcbde95fe1488ce617d6a766dde063
|
|
4
|
+
data.tar.gz: 95095ec4eb2861a99e684f9c301a21b325c87e334fee6c369f83ec981e9df56f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: acd015e4869441dcaa014d47b94818e3d2d40ac33d2df04b089ee27fb212bfe059d5c327c590aff7f042a358913fb356c602a4bf9347be5553d54ec85e16f9e2
|
|
7
|
+
data.tar.gz: 8bd05c267bd59cad42aff243019117d8a7213c88a593bd41ffbb3a8194eb4dadbdfac9f06c7072cf2ff35f5e71f3257be2a10b6542b49702881dcdf3b835ea8e
|
data/bin/reclaim-oidc
CHANGED
|
@@ -120,10 +120,11 @@ if (options.list)
|
|
|
120
120
|
puts "------------------------------------"
|
|
121
121
|
puts "Authorize Endpoint: #{op['authz_endpoint']}"
|
|
122
122
|
puts "Token Endpoint: #{op['token_endpoint']}"
|
|
123
|
+
puts "Userinfo Endpoint: #{op['userinfo_endpoint']}"
|
|
123
124
|
puts "JSON-Web-Token Algorithm: #{op['jwt_algo']}"
|
|
124
125
|
puts "JSON-Web-Token key: #{op['jwt_key']}"
|
|
125
126
|
puts "Example Authorization Redirect:"
|
|
126
|
-
puts "https://api.reclaim/openid/authorize?client_id=<client_id>&redirect_uri=<redirect_uri>&scope=email%20full_name&nonce=1234"
|
|
127
|
+
puts "https://api.reclaim/openid/authorize?client_id=<client_id>&redirect_uri=<redirect_uri>&response_type=code&scope=email%20full_name&nonce=1234"
|
|
127
128
|
puts ""
|
|
128
129
|
puts "Registered Clients:"
|
|
129
130
|
puts "-------------------"
|
data/lib/reclaim_oidc.rb
CHANGED
|
@@ -23,7 +23,7 @@ class ReclaimOidc
|
|
|
23
23
|
def get_client_secret
|
|
24
24
|
uri = URI(@url + '/config/reclaim-rest-plugin')
|
|
25
25
|
resp = JSON.parse Net::HTTP.get(uri)
|
|
26
|
-
return resp["
|
|
26
|
+
return resp["OIDC_CLIENT_SECRET"]
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def get_clients
|
|
@@ -74,6 +74,7 @@ class ReclaimOidc
|
|
|
74
74
|
host = 'http://localhost:7776'
|
|
75
75
|
op['authz_endpoint'] = host + '/openid/authorize'
|
|
76
76
|
op['token_endpoint'] = host + '/openid/token'
|
|
77
|
+
op['userinfo_endpoint'] = host + '/openid/userinfo'
|
|
77
78
|
op
|
|
78
79
|
end
|
|
79
80
|
def set_jwt_secret
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reclaim-oidc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Schanzenbach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-04-
|
|
11
|
+
date: 2019-04-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Used to manage re:claimID OpenID Connect clients and OpenID Connect Provider
|
|
14
14
|
configuration(s)
|