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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8457ee899a43a473780d2e48d89d8f5d91448749c1f1d12426ce1f37170db612
4
- data.tar.gz: '08e4e088fe5d3e5cab0ae7ac176863721fe8e32e8f6135d5e8233aa824ac52bb'
3
+ metadata.gz: 383f73a7aac6866e6fdc8389278bf87a08bcbde95fe1488ce617d6a766dde063
4
+ data.tar.gz: 95095ec4eb2861a99e684f9c301a21b325c87e334fee6c369f83ec981e9df56f
5
5
  SHA512:
6
- metadata.gz: aeb2aea87d30407080a8220c8d733070c44e624c02c502d8fe73ec26c60b3703c485d0f7292a107ee9340567917c092988bd635aeb1eab6cf7cb1fb002c6ffd5
7
- data.tar.gz: a6da4bb73e033ca1508b516c7c03fdbe55148c3f9483579b5436e5456473b740e724b4e748ed25aa4550bbb29087307d30e545737814b43274d11f4cc7fe673f
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["PSW"]
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.1
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-25 00:00:00.000000000 Z
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)