Sha256: 652111c32f06c00a5a9358682deba743daa6500b76aaddac4b53a86a2a2b51a9

Contents?: true

Size: 760 Bytes

Versions: 32

Compression:

Stored size: 760 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

32 entries across 32 versions & 5 rubygems

Version Path
filiptepper-oauth-plugin-0.3.11 generators/oauth_provider/USAGE
pelle-oauth-plugin-0.3.10 generators/oauth_provider/USAGE
pelle-oauth-plugin-0.3.11 generators/oauth_provider/USAGE
pelle-oauth-plugin-0.3.5 generators/oauth_provider/USAGE
pelle-oauth-plugin-0.3.6 generators/oauth_provider/USAGE
pelle-oauth-plugin-0.3.7 generators/oauth_provider/USAGE
pelle-oauth-plugin-0.3.8 generators/oauth_provider/USAGE
pelle-oauth-plugin-0.3.9 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.rc2 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.rc1 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.pre7 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.pre6 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.pre5 generators/oauth_provider/USAGE
insrc-oauth-plugin-0.4.0.pre6 generators/oauth_provider/USAGE
insrc-oauth-plugin-0.4.0.pre5 generators/oauth_provider/USAGE
le1t0-oauth-plugin-0.3.14.001 generators/oauth_provider/USAGE
le1t0-oauth-plugin-0.4.0.pre4.001 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.pre4 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.pre3 generators/oauth_provider/USAGE
oauth-plugin-0.4.0.pre2 generators/oauth_provider/USAGE