Skip to content

Instantly share code, notes, and snippets.

@nov
Created August 20, 2011 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nov/1159258 to your computer and use it in GitHub Desktop.
Save nov/1159258 to your computer and use it in GitHub Desktop.
OpenID Connect Dynamic Client Registration
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