aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-27 16:10:42 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-27 16:10:42 +0200
commit016209d990ba5667d365fab345ac49d146e45ac4 (patch)
treed2274b31393585b1e2a50de0fbcea30eaa4029ec
parent0c494be7bd33625523327309ea4c251a92d54e3c (diff)
downloadreclaim-oidc-master.tar.gz
reclaim-oidc-master.zip
update to v0.0.7HEADmaster
-rw-r--r--lib/reclaim_oidc.rb14
-rw-r--r--reclaim-oidc.gemspec4
2 files changed, 12 insertions, 6 deletions
diff --git a/lib/reclaim_oidc.rb b/lib/reclaim_oidc.rb
index 4c06936..b29b541 100644
--- a/lib/reclaim_oidc.rb
+++ b/lib/reclaim_oidc.rb
@@ -3,7 +3,7 @@ require 'json'
3 3
4$VERSION_MAJOR = 0 4$VERSION_MAJOR = 0
5$VERSION_MINOR = 0 5$VERSION_MINOR = 0
6$VERSION_MICRO = 5 6$VERSION_MICRO = 7
7 7
8class ReclaimOidc 8class ReclaimOidc
9 def initialize(verbose=false, url='http://localhost:7776') 9 def initialize(verbose=false, url='http://localhost:7776')
@@ -62,11 +62,17 @@ class ReclaimOidc
62 records["data"] << {'record_type' => "RECLAIM_OIDC_CLIENT", 62 records["data"] << {'record_type' => "RECLAIM_OIDC_CLIENT",
63 'value' => description, 63 'value' => description,
64 'expiration_time' => "1h", 64 'expiration_time' => "1h",
65 'flag' => 8} 65 'private' => false,
66 'relative_expiration' => true,
67 'supplemental' => false,
68 'shadow' => false}
66 records["data"] << {'record_type' => "RECLAIM_OIDC_REDIRECT", 69 records["data"] << {'record_type' => "RECLAIM_OIDC_REDIRECT",
67 'value' => redirect_uri, 70 'value' => redirect_uri,
68 'expiration_time' => "1h", 71 'expiration_time' => "1h",
69 'flag' => 8} 72 'private' => false,
73 'relative_expiration' => true,
74 'supplemental' => false,
75 'shadow' => false}
70 Net::HTTP.start(uri.host, uri.port) do |http| 76 Net::HTTP.start(uri.host, uri.port) do |http|
71 resp = http.post(uri.path,records.to_json) 77 resp = http.post(uri.path,records.to_json)
72 end 78 end
@@ -90,7 +96,7 @@ class ReclaimOidc
90 op['token_endpoint'] = host + '/openid/token' 96 op['token_endpoint'] = host + '/openid/token'
91 op['userinfo_endpoint'] = host + '/openid/userinfo' 97 op['userinfo_endpoint'] = host + '/openid/userinfo'
92 op 98 op
93 end 99 end
94 def set_jwt_secret(jwt_secret) 100 def set_jwt_secret(jwt_secret)
95 uri = URI(@url + '/config/reclaim-rest-plugin') 101 uri = URI(@url + '/config/reclaim-rest-plugin')
96 request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json') 102 request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
diff --git a/reclaim-oidc.gemspec b/reclaim-oidc.gemspec
index db414f8..6f384be 100644
--- a/reclaim-oidc.gemspec
+++ b/reclaim-oidc.gemspec
@@ -1,7 +1,7 @@
1Gem::Specification.new do |s| 1Gem::Specification.new do |s|
2 s.name = 'reclaim-oidc' 2 s.name = 'reclaim-oidc'
3 s.version = '0.0.5' 3 s.version = '0.0.7'
4 s.date = '2019-04-30' 4 s.date = '2020-07-27'
5 s.summary = "re:claimID OpenID Connect CLI" 5 s.summary = "re:claimID OpenID Connect CLI"
6 s.description = "Used to manage re:claimID OpenID Connect clients and OpenID Connect Provider configuration(s)" 6 s.description = "Used to manage re:claimID OpenID Connect clients and OpenID Connect Provider configuration(s)"
7 s.authors = ["Martin Schanzenbach"] 7 s.authors = ["Martin Schanzenbach"]