Giter Site home page Giter Site logo

authlogic-connect-example's Introduction

authlogic-connect-example's People

Contributors

termhare avatar

Stargazers

OftenGuy avatar JT5D avatar Cam Peterson avatar Phil Britton avatar Julien Nakache avatar Cris Kim avatar Don Abrams avatar Forrest O. avatar  avatar Leonid Pavlov avatar brownman avatar Francesco Marassi avatar  avatar Kayla Rose avatar  avatar Andre Ortiz avatar  avatar evandrix avatar  avatar Lau avatar Eric Luo avatar  avatar ilyav avatar Gabor Babicz avatar Dmitry Vasilets avatar Adriaan Tijsseling avatar Shree Dittakavi avatar  avatar Dan Tocchini IV avatar mifan avatar Martin Rehfeld avatar Jesse Crockett avatar  avatar Vance Lucas avatar

Watchers

James Cloos avatar  avatar

authlogic-connect-example's Issues

Error while trying to generate AccessToken model

Hi there,

I'm running rails 3.0.5 on ruby 1.9.2 and when I try to generate a model for the AccessToken I get the following error:

$ rails generate model AccessToken user_id:integer type:string key:string token:string
secret:string active:boolean
invoke active_record
The name 'AccessToken' is either already used in your application or reserved by Ruby on
Rails. Please choose an alternative and run this generator again.

I'll try hand coding the migration to add the table to the database but I'm concerned that AccessToken may be a rails reserved key word and I'll run into trouble down the line. Any help understanding what is going on here would be greatly appreciated.

Thanks!

skipping password and email validation

I am using authlogic for normal user signup,login and also authlogic connect for facebook and twitter signup,login.I need to skip password and email validation when the user signup using facebook and twitter. How should i implement it? Please help?

user model

acts_as_authentic do |c|
if Proc.new{|user|user.oauth_user}
c.validate_email_field = false
c.validate_password_field = false
end
end

def oauth_user
!(self.authenticated_with?(:facebook) || self.authenticated_with?(:twitter)).nil?
end

401

Hi, I've been trying to get this to work. I followed the steps precisely, but all I can get from Twitter is a 401. The only variable seems to be the callback url. What do I use for that in the registration at twitter?


Started POST "/authenticate" for 68.102.115.162 at 2010-06-18 03:30:39
  Processing by UserSessionsController#create as HTML
  Parameters: {"authentication_type"=>"session", "authenticity_token"=>"tZKEeh6Po51UdU4YUnw6ykTT79HJS1f44RM9Uk/weE0=", "openid_identifier"=>"", "oauth_provider"=>"twitter"}

OAuth::Unauthorized (401 Unauthorized):
  app/controllers/user_sessions_controller.rb:13:in `create'

protect form from forgery

I used your example to understand and setup up authlogic connect. I have a suggestion for you. Please add an instruction in your readme to comment protect_form_from forgery. I spent like 6 hours to track down why your app works and mine doesn't in the end only to find out the issue was to comment form_forgery line in application controller.

Thanks a lot for the great example. please update the readme so it can save others the time I had to put in..

--Abid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.