Created
August 20, 2011 15:49
-
-
Save nov/1159258 to your computer and use it in GitHub Desktop.
OpenID Connect Dynamic Client Registration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'restclient' | |
res = RestClient.get("https://openid-connect.herokuapp.com/connect/client/new") | |
puts res.body | |
res = RestClient.post("https://openid-connect.herokuapp.com/connect/client", { | |
:name => 'Sample Dynamic Client', | |
:redirect_uri => 'http://hoge.com' | |
}.to_json, :content_type => 'application/json') | |
puts res.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment