
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
devise_oauth2_authenticatable
Advanced tools
= devise_oauth2_authenticatable
This is the basic framework for an OAuth2 gem for Devise.
It currently works with FacebookGraph, to get started begin by registering a new application at
http://developers.facebook.com/setup/
A generator is provided for creating your oauth yml file
script/generate devise_oauth2_authenticatable
Ex:
script/generate devise_oauth2_authenticatable --id API_ID --key SECRET --server https://graph.facebook.com --scope 'email,offline_access,publish_stream'
for more details
http://developers.facebook.com/docs/authentication/
It's based on the devise facebook gem provided by grimen
http://github.com/grimen/devise_facebook_connectable
And uses the example provided in OAuth2 library provided by mbleigh
http://github.com/intridea/oauth2
DB Migration :
add_column :users, :oauth2_uid, :integer, :limit => 8 # BIGINT unsigned / 64-bit int
add_column :users, :oauth2_token, :string, :limit => 149 # [128][1][20] chars
add_index :users, :oauth2_uid, :unique => true
Note:
A little souce of confusion when working with Facebook Graph
The api key and secret key are no the same a Facebook Connect/the old API.
The client id should be your application id and the client_key, should be your API key (not secret key)
== TODO
Write tests : Currently no tests have been written. My bad.
Add Javascript / token based auth : Facebook graph offes a complete authorization solution using javascript and a returned authentication token. Adding optional support for this would complete the Facebook Graph authentication interface.
Generalize for OAuth2: Add support for other OAuth2 services. Wrote this specifically for facebook graph, athought configuration arugments should be generalized to support other interfaces.
Description goes here.
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2010 bhbryant. See LICENSE for details.
FAQs
Unknown package
We found that devise_oauth2_authenticatable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.