You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be beneficial if the ldap connection Devise::LDAP::Connection were made available in the after_ldap_authentication callback. Or, if a new callback were created which made the connection available.
For example, immediately after an LDAP user is authenticated, I want to save their photo. Something like this:
Currently, I cannot do this without pulling in Net::LDAP and re-authenticating/binding with the login and password. If there were a callback which provided access to the ldap connection, I could just use it.
I looked at the source superficially, and the call to the callback in strategy.rb#L20 would have to change (among other things) to pass in the connection.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Provide access to ldap connection in ldap_authenticatable callback, or a new callback
Provide access to ldap connection in after_ldap_authentication callback, or a new callback
Aug 10, 2015
It would be beneficial if the ldap connection
Devise::LDAP::Connection
were made available in theafter_ldap_authentication
callback. Or, if a new callback were created which made the connection available.For example, immediately after an LDAP user is authenticated, I want to save their photo. Something like this:
Currently, I cannot do this without pulling in
Net::LDAP
and re-authenticating/binding with the login and password. If there were a callback which provided access to the ldap connection, I could just use it.I looked at the source superficially, and the call to the callback in strategy.rb#L20 would have to change (among other things) to pass in the connection.
The text was updated successfully, but these errors were encountered: