-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined local variable or method `current_user' after upgrading to 1.6.1 #183
Comments
Great catch! We are using In the meantime, is SP-initiated logout working for you? That method short-circuits if the |
no, our name_identifier_format is `urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified`
Incidentally, I tried adding a `current_user` method to return `current_provider `in our subclass, but it failed on the next line with `NoMethodError - undefined method `session_index' for #<Provider:0x00007fa25150a2a8>`
|
Setting For the second error, it seems like you've configured |
OK, will take a look, thanks. |
We are unable to sign out without getting this error in
app/controllers/devise/saml_sessions_controller.rb:62
after upgrading from 1.5.0 to 1.6.1.Our user is based on the
Provider
model, so normally we would refer to thecurrent user
ascurrent_provider
.It seems to be happening in a before action, as it happens before it gets to the first line of this method in our controller derived from
Devise::SamlSessionsController
Are you able to provider some pointers as to what is going on?
The text was updated successfully, but these errors were encountered: