[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.
- [reclaim-oidc] branch master created (now 016209d), gnunet, 2021/06/11
- [reclaim-oidc] 01/18: Initial commit, gnunet, 2021/06/11
- [reclaim-oidc] 04/18: minor, gnunet, 2021/06/11
- [reclaim-oidc] 06/18: ready for deploy, gnunet, 2021/06/11
- [reclaim-oidc] 05/18: integrate config, gnunet, 2021/06/11
- [reclaim-oidc] 03/18: towards working tool, gnunet, 2021/06/11
- [reclaim-oidc] 09/18: 0.0.4,
gnunet <=
- [reclaim-oidc] 17/18: Merge branch 'master' into 'master', gnunet, 2021/06/11
- [reclaim-oidc] 08/18: old style posts, gnunet, 2021/06/11
- [reclaim-oidc] 07/18: 0.0.2, gnunet, 2021/06/11
- [reclaim-oidc] 15/18: Merge branch 'master' into 'master', gnunet, 2021/06/11
- [reclaim-oidc] 11/18: 0.0.5, gnunet, 2021/06/11
- [reclaim-oidc] 12/18: update readme, gnunet, 2021/06/11
- [reclaim-oidc] 13/18: add image, gnunet, 2021/06/11
- [reclaim-oidc] 02/18: add license and readme, gnunet, 2021/06/11
- [reclaim-oidc] 18/18: update to v0.0.7, gnunet, 2021/06/11
- [reclaim-oidc] 10/18: reduce expiration times for client info, gnunet, 2021/06/11