[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-oidc] 08/18: old style posts
From: |
gnunet |
Subject: |
[reclaim-oidc] 08/18: old style posts |
Date: |
Sat, 12 Jun 2021 00:40:44 +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 e714c87047ba7b3ea267d35e615842732f075386
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Sun Apr 28 19:43:30 2019 +0200
old style posts
---
lib/reclaim_oidc.rb | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/lib/reclaim_oidc.rb b/lib/reclaim_oidc.rb
index aaa217a..4ba55aa 100644
--- a/lib/reclaim_oidc.rb
+++ b/lib/reclaim_oidc.rb
@@ -42,20 +42,32 @@ class ReclaimOidc
raise if redirect_uri.nil? or description.nil? or name.nil?
uri = URI(@url + '/identity')
payload = {'name' => "#{name}"}.to_json
- resp = Net::HTTP.post(uri, payload)
+ #resp = Net::HTTP.post(uri, payload)
+ req = Net:HTTP::Post.new(uri, payload)
+ Net::HTTP.start(uri.host, uri.port) do |http|
+ resp = http.request req
+ end
uri = URI(@url + "/namestore/#{name}")
record = {'record_type' => "RECLAIM_OIDC_CLIENT",
'value' => description,
'record_name' => "@",
'expiration_time' => "1d",
'flag' => 8}
- resp = Net::HTTP.post(uri,record.to_json)
+ #resp = Net::HTTP.post(uri,record.to_json)
+ req = Net:HTTP::Post.new(uri, record.to_json)
+ Net::HTTP.start(uri.host, uri.port) do |http|
+ resp = http.request req
+ end
record = {'record_type' => "RECLAIM_OIDC_REDIRECT",
'value' => redirect_uri,
'record_name' => "@",
'expiration_time' => "1d",
'flag' => 8}
- resp = Net::HTTP.post(uri,record.to_json)
+ req = Net:HTTP::Post.new(uri, record.to_json)
+ #resp = Net::HTTP.post(uri,record.to_json)
+ Net::HTTP.start(uri.host, uri.port) do |http|
+ resp = http.request req
+ end
end
def delete_client(name)
raise if name.nil?
--
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, 2021/06/11
- [reclaim-oidc] 17/18: Merge branch 'master' into 'master', gnunet, 2021/06/11
- [reclaim-oidc] 08/18: old style posts,
gnunet <=
- [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
- [reclaim-oidc] 16/18: added error handling for unknown commands + REST service not running, gnunet, 2021/06/11
- [reclaim-oidc] 14/18: added command for changing the jwt secret, gnunet, 2021/06/11