Sha256: 806fcbe758edf99fde949ee41d3b2c53916de074083e0f18201d884b69d07acd

Contents?: true

Size: 759 Bytes

Versions: 7

Compression:

Stored size: 759 Bytes

Contents

./script/generate oauth_provider

This creates an OAuth Provider controller as well as the requisite models.

It requires an authentication framework such as acts_as_authenticated, restful_authentication or restful_open_id_authentication.

If you generated the migration file (true by default), make sure you run

  rake db:migrate

include the following in your user.rb

  has_many :client_applications
  has_many :tokens, :class_name=>"OauthToken",:order=>"authorized_at desc",:include=>[:client_application]

For legacy OAUTH 1.0 support add the following constant in your environment.rb

  OAUTH_10_SUPPORT = true

Note, you should only do this if you really positively require to support old OAuth1.0 clients. There is a serious security issue with this.

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
houston-oauth-plugin-0.5.1 generators/oauth_provider/USAGE
panjiva-oauth-plugin-0.4.1 generators/oauth_provider/USAGE
oauth-plugin-0.5.1 generators/oauth_provider/USAGE
oauth-plugin-0.5.0 generators/oauth_provider/USAGE
oauth-provider-0.5.0rc1 generators/oauth_provider/USAGE
oauth-plugin-0.4.1 generators/oauth_provider/USAGE
oauth-plugin-0.4.0 generators/oauth_provider/USAGE