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
{{ message }}
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
Hi, thanks for the great work, I installed redmine_cas in my redmine 2.6 and it can redirect me to my CASino server but i wonder how could i populate the CAS server. i want that all users in redmine could have the same login/password in CAS.
Thanks for the help
The text was updated successfully, but these errors were encountered:
Redmine work differently, it use SHA1 twice so i changed the validate function inside casino-activerecord_authenticator gem as a new gem on my side.
def validate(username, password)
user = @model.send("find_by_#{@options[:username_column]}!", username)
password_from_database = user.send(@options[:password_column])
if @options[:is_redmine]
salt = user.send('salt')
if Digest::SHA1.hexdigest("#{salt}#{Digest::SHA1.hexdigest password}") == password_from_database
user_data(user)
else
return false
end
else
if valid_password?(password, password_from_database)
user_data(user)
else
false
end
end
Ofcourse, i added an option is_redmine in cas.yml
Thanks
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, thanks for the great work, I installed redmine_cas in my redmine 2.6 and it can redirect me to my CASino server but i wonder how could i populate the CAS server. i want that all users in redmine could have the same login/password in CAS.
Thanks for the help
The text was updated successfully, but these errors were encountered: