gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-oidc] 07/18: 0.0.2


From: gnunet
Subject: [reclaim-oidc] 07/18: 0.0.2
Date: Sat, 12 Jun 2021 00:40:43 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository reclaim-oidc.

commit 774b6e34c57688b9beb84864b7e7577dbd1f7daf
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Sun Apr 28 19:03:32 2019 +0200

    0.0.2
---
 bin/reclaim-oidc     | 3 ++-
 lib/reclaim_oidc.rb  | 3 ++-
 reclaim-oidc.gemspec | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/bin/reclaim-oidc b/bin/reclaim-oidc
index 32211b7..b279b31 100755
--- a/bin/reclaim-oidc
+++ b/bin/reclaim-oidc
@@ -120,10 +120,11 @@ if (options.list)
   puts "------------------------------------"
   puts "Authorize Endpoint: #{op['authz_endpoint']}"
   puts "Token Endpoint: #{op['token_endpoint']}"
+  puts "Userinfo Endpoint: #{op['userinfo_endpoint']}"
   puts "JSON-Web-Token Algorithm: #{op['jwt_algo']}"
   puts "JSON-Web-Token key: #{op['jwt_key']}"
   puts "Example Authorization Redirect:"
-  puts 
"https://api.reclaim/openid/authorize?client_id=<client_id>&redirect_uri=<redirect_uri>&scope=email%20full_name&nonce=1234"
+  puts 
"https://api.reclaim/openid/authorize?client_id=<client_id>&redirect_uri=<redirect_uri>&response_type=code&scope=email%20full_name&nonce=1234"
   puts ""
   puts "Registered Clients:"
   puts "-------------------"
diff --git a/lib/reclaim_oidc.rb b/lib/reclaim_oidc.rb
index 08a3e06..aaa217a 100644
--- a/lib/reclaim_oidc.rb
+++ b/lib/reclaim_oidc.rb
@@ -23,7 +23,7 @@ class ReclaimOidc
   def get_client_secret
     uri = URI(@url + '/config/reclaim-rest-plugin')
     resp = JSON.parse Net::HTTP.get(uri)
-    return resp["PSW"]
+    return resp["OIDC_CLIENT_SECRET"]
   end
 
   def get_clients
@@ -74,6 +74,7 @@ class ReclaimOidc
     host = 'http://localhost:7776'
     op['authz_endpoint'] = host + '/openid/authorize'
     op['token_endpoint'] = host + '/openid/token'
+    op['userinfo_endpoint'] = host + '/openid/userinfo'
     op
   end
   def set_jwt_secret
diff --git a/reclaim-oidc.gemspec b/reclaim-oidc.gemspec
index 52bfa9e..3363855 100644
--- a/reclaim-oidc.gemspec
+++ b/reclaim-oidc.gemspec
@@ -1,7 +1,7 @@
 Gem::Specification.new do |s|
   s.name        = 'reclaim-oidc'
-  s.version     = '0.0.1'
-  s.date        = '2019-04-25'
+  s.version     = '0.0.2'
+  s.date        = '2019-04-28'
   s.summary     = "re:claimID OpenID Connect CLI"
   s.description = "Used to manage re:claimID OpenID Connect clients and OpenID 
Connect Provider configuration(s)"
   s.authors     = ["Martin Schanzenbach"]

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]