Every repository with this icon (
Every repository with this icon (
| Description: | Extension of the Authlogic library to add OpenID support. edit |
-
Missing template user_sessions/create.erb in view path app/views
12 comments Created 6 months ago by taddgilesauthlogic v2.0.13 and authlogic-oid v1.0.4
When I submit an invalid open id to a new session ("goodopenid.com" in my case) I get the following error:
Missing template user_sessions/create.erb in view path app/views
Here's my user_sessions_controller create method (copied from examples)
def create
@user_session = UserSession.new(params[:user_session]) # We are saving with a block to accomodate for OpenID authentication # If you are not using OpenID you can save without a block: # # if @user_session.save # # ... successful login # else # # ... unsuccessful login # end @user_session.save do |result| if result flash[:notice] = "Login successful!" redirect_back_or_default root_path else render :action => :new end endend
For some reason its attempting to render "create" rather than rendering "new" with errors.
Incidentally, I see the same problem in the sample app here:
http://authlogicexample.binarylogic.com/
There, when I use "goodopenid.com" I get a crash.
Ideas?
Comments
-
Hi. It would be very nice if it was possible to merge the login and registration together. Example:
As a user who never used the website.
When I login with openid.
The user is automatically created.This way, I don't have a registration phase. The user simple logins, and if it doesn't exist yet on the database, the user is created.
I tried to play with the existing code to implement this behavior with no success. Does it make sense?
Comments
rubenfonseca
Tue Jun 16 14:44:47 -0700 2009
| link
I tried to override "self.find_by_openid_identifier" on the User class as shown in http://gist.github.com/130921 .
Although it seems to work, I loose the openid registration fields since map_openid_registration is never called. I think I'm getting closer... -
authlogic > 2.0.11 and authlogic_openid 1.0.4
0 comments Created 5 months ago by dbarisonundefined method `required_fields=' !!
Comments
-
I originally posted this as a AuthLogic Lighthouse ticket, so I'll simply include a link to the ticket.
Note that I found the cause of the problem and propose a possible solution in my second to last post in the ticket.
Comments
-
possible "remember_me" typo in validate_by_openid method
1 comment Created 4 months ago by hugopeixotoIn the validate_by_openid method, you're setting the variable "self.remember_me", while a few lines below, you're using "remember_me?" (notice the question mark).
I'm not completely sure if this is a typo/bug, but it looks like it. Sorry if I'm wrong.
Comments
hugopeixoto
Mon Aug 03 12:59:00 -0700 2009
| link
Nevermind, I just figured it out. :x
-
Gem of new version and small issue when using in test/console..
0 comments Created 2 months ago by joostCan this Github repos be turned into gem? Now I only seem to find the 1.0.4 version :(
Also I get a 'nil.params?' error when using in console / test.
Please see below for fix:# This fixes the following error: # You have a nil object when you didn't expect it! # The error occurred while evaluating nil.params module AuthlogicOpenid module ActsAsAuthentic module Methods def openid_complete? session_class.controller && session_class.controller.params[:open_id_complete] && session_class.controller.params[:for_model] end end end endComments
-
auto_register tries to duplicate registration
0 comments Created 2 months ago by eimantasI am trying to enable openid authentication on my website as well as use auto_register feature of latest authlogic_openid add-on.
Everything works fine until second login. The first time user is created and logged in, but after I logout and try logging in into the system with same OpenID identifier I get user registration form with errors saying that username and other fields are already taken and the form is prefilled with values of earlier data passed with openid.
Everything is implemented by authlogic/authlogic openid tutorial except for the user session model with new auto_register call.
Comments
-
when do we get an update on rubyforge for the gem?
i'm missing the auto_register function in the gem.thx daq
Comments
-
For the validates_length_of_password_field_options, validates_confirmation_of_password_field_options, and validates_length_of_password_confirmation_field_options the :if option is ignored. It appears that a merge is executed against the options hash, overwriting the :if option. Can we change this to a reverse_merge? http://gist.github.com/251422
(I wanted to run this against the test suite but I couldn't get the suite to pass regardless of this patch's presence)
Comments












This error appeared in a recent update of authlogic_openid. With version 1.0.4, all of my tests pass. With the current version, several things break, including the problem you mention here.
so your tests pass with authlogic_openid 1.0.4? And which version of authlogic are you using?
I was using 2.0.14, but have now upgraded to 2.1.1. Both pass all my tests. When I upgrade authlogic_openid to the current version, I get errors and assertion failures. The errors are the same one you report above: missing user_sessions/create.html.erb template.
same problem here, with lastest version.
authlogic 2.1.1 + authlogic-oid 1.0.4 all ok.
yup, confirmed, authlogic 2.0.14 and authlogic-oid 1.0.4 pass for me too.
I posted something to the google group a while back about a commit that was made almost a month ago... You guys might want to check if it's the same issue I was having.
http://groups.google.com/group/authlogic/browse_thread/thread/fdc8dad50e8cf267/203f774bad6faa46?lnk=gst&q=block#203f774bad6faa46
yes this solution fix this problem, thnx sporkd.
now remains some problems with auto_register enabled.
Is there any chance of this being fixed and released in the official gem? I cannot modify code as in sporkd's link since I don't have control over gems in my deployment environment (Heroku), but can only reference ones that are in the gem repositories.
Does heroku only let you use the official gem? i.e. can you not build your own? http://gems.github.com
If this is not possible, I would post to the thread up on the google group, as I'm not sure if ben checks these issues very often.
See line 71 of lib/authlogic-oid/session.rb . When using authlogic-oid, it clears out the block:
leaving us with no render at all, so the default create template gets loaded.
My fix is to move the render on fail outside the block in the controller, and condition it on the record saving:
bmishkin: Can you post your controller, please ? thx.
The following might be worth a try:
def create
end