Skip to content

Commit

Permalink
F OpenNebula#2497: two factor authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
  • Loading branch information
Jorge Lobo committed Jul 4, 2019
1 parent f98d1f4 commit 28ff5c8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1930,9 +1930,9 @@ SUNSTONE_ETC_VIEW_MIXED="src/sunstone/etc/sunstone-views/mixed/admin.yaml \
SUNSTONE_MODELS_FILES="src/sunstone/models/OpenNebulaJSON.rb \
src/sunstone/models/SunstoneServer.rb \
src/sunstone/models/SunstoneViews.rb \
src/sunstone/models/my_qr_code.rb \
src/sunstone/models/my_totp.rb \
src/sunstone/models/two_factor_auth.rb "
src/sunstone/models/OpenNebula2FA/SunstoneQRCode.rb \
src/sunstone/models/OpenNebula2FA/SunstoneOPTP.rb \
src/sunstone/models/OpenNebula2FA/Suntone2FAuth.rb "

SUNSTONE_MODELS_JSON_FILES="src/sunstone/models/OpenNebulaJSON/HostJSON.rb \
src/sunstone/models/OpenNebulaJSON/ImageJSON.rb \
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #

require 'my_totp'
require 'SunstoneOPTP'

# 2F Auth
module TwoFactorAuth
Expand Down
2 changes: 1 addition & 1 deletion src/sunstone/models/OpenNebulaJSON/UserJSON.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#--------------------------------------------------------------------------- #

require 'OpenNebulaJSON/JSONUtils'
require 'two_factor_auth'
require 'Suntone2FAuth'

module OpenNebulaJSON
class UserJSON < OpenNebula::User
Expand Down
7 changes: 4 additions & 3 deletions src/sunstone/sunstone-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
$LOAD_PATH << RUBY_LIB_LOCATION + '/cloud'
$LOAD_PATH << SUNSTONE_ROOT_DIR
$LOAD_PATH << SUNSTONE_ROOT_DIR + '/models'
$LOAD_PATH << SUNSTONE_ROOT_DIR + '/models/OpenNebula2FA'

DISPLAY_NAME_XPATH = 'TEMPLATE/SUNSTONE/DISPLAY_NAME'
TABLE_ORDER_XPATH = 'TEMPLATE/SUNSTONE/TABLE_ORDER'
Expand Down Expand Up @@ -98,9 +99,9 @@
require 'uri'
require 'open3'

require "my_qr_code"
require "my_totp"
require "two_factor_auth"
require "SunstoneQRCode"
require "SunstoneOPTP"
require "Suntone2FAuth"
require 'CloudAuth'
require 'SunstoneServer'
require 'SunstoneViews'
Expand Down

0 comments on commit 28ff5c8

Please sign in to comment.