Method: CloudKit::OAuthStore#load_static_consumer
- Defined in:
- lib/cloudkit/oauth_store.rb
#load_static_consumer ⇒ Object
Load the static consumer entity if it does not already exist. See the OAuth Discovery spec for more info on static consumers.
43 44 45 46 |
# File 'lib/cloudkit/oauth_store.rb', line 43 def load_static_consumer json = JSON.generate(:secret => '') @@store.put(CloudKit::URI.new('/cloudkit_oauth_consumers/cloudkitconsumer'), :json => json) end |