gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-oidc] 09/18: 0.0.4


From: gnunet
Subject: [reclaim-oidc] 09/18: 0.0.4
Date: Sat, 12 Jun 2021 00:40:45 +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 1a4b7178b9d62ab33b91819ea0de9a90f4781750
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Sun Apr 28 20:05:47 2019 +0200

    0.0.4
---
 lib/reclaim_oidc.rb  | 14 +++++++-------
 reclaim-oidc.gemspec |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/reclaim_oidc.rb b/lib/reclaim_oidc.rb
index 4ba55aa..c28eeea 100644
--- a/lib/reclaim_oidc.rb
+++ b/lib/reclaim_oidc.rb
@@ -41,11 +41,11 @@ class ReclaimOidc
   def add_client(name,redirect_uri,description)
     raise if redirect_uri.nil? or description.nil? or name.nil?
     uri = URI(@url + '/identity')
-    payload = {'name' => "#{name}"}.to_json
+    payload = {'name' => "#{name}"}
     #resp = Net::HTTP.post(uri, payload)
-    req = Net:HTTP::Post.new(uri, payload)
+    #req = Net::HTTP::Post.new(uri, payload.to_json)
     Net::HTTP.start(uri.host, uri.port) do |http|
-      resp = http.request req
+      resp = http.post(uri.path, payload.to_json)
     end
     uri = URI(@url + "/namestore/#{name}")
     record = {'record_type' => "RECLAIM_OIDC_CLIENT",
@@ -54,19 +54,19 @@ class ReclaimOidc
               'expiration_time' => "1d",
               'flag' => 8}
     #resp = Net::HTTP.post(uri,record.to_json)
-    req = Net:HTTP::Post.new(uri, record.to_json)
+    #req = Net::HTTP::Post.new(uri, record)
     Net::HTTP.start(uri.host, uri.port) do |http|
-      resp = http.request req
+      resp = http.post(uri.path,record.to_json)
     end
     record = {'record_type' => "RECLAIM_OIDC_REDIRECT",
               'value' => redirect_uri,
               'record_name' => "@",
               'expiration_time' => "1d",
               'flag' => 8}
-    req = Net:HTTP::Post.new(uri, record.to_json)
+    #req = Net::HTTP::Post.new(uri, record)
     #resp = Net::HTTP.post(uri,record.to_json)
     Net::HTTP.start(uri.host, uri.port) do |http|
-      resp = http.request req
+      resp = http.post(uri.path,record.to_json)
     end
   end
   def delete_client(name)
diff --git a/reclaim-oidc.gemspec b/reclaim-oidc.gemspec
index 3363855..0dfb0c7 100644
--- a/reclaim-oidc.gemspec
+++ b/reclaim-oidc.gemspec
@@ -1,6 +1,6 @@
 Gem::Specification.new do |s|
   s.name        = 'reclaim-oidc'
-  s.version     = '0.0.2'
+  s.version     = '0.0.4'
   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)"

-- 
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]