1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #847: Updated login tokens for auth drivers

This commit is contained in:
Ruben S. Montero 2011-10-12 01:09:45 +02:00
parent 605d580c63
commit 07321ac3d3
3 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ class ServerAuth < X509Auth
token = encrypt(token_txt)
token64 = Base64::encode64(token).strip.delete("\n")
login_out = "#{user}:server:#{token64}"
login_out = "#{user}:#{token64}"
login_out
end

View File

@ -82,7 +82,7 @@ class SshAuth
secret_plain = "#{user}:#{time}"
secret_crypted = encrypt(secret_plain)
proxy = "#{user}:ssh:#{secret_crypted}"
proxy = "#{user}:#{secret_crypted}"
file = File.open(LOGIN_PATH, "w")
file.write(proxy)

View File

@ -103,7 +103,7 @@ class X509Auth
token = "#{signed_text}:#{certs_pem}"
token64 = Base64::encode64(token).strip.delete("\n")
login_out = "#{user}:x509:#{token64}"
login_out = "#{user}:#{token64}"
login_out
end