Top Level Namespace
- Includes:
- Rhoconnect
Defined Under Namespace
Modules: Document, GraphHelper, LockOps, Rack, Rhoconnect, RhoconnectConsole, Utilities Classes: DBAdapter, Hash
Constant Summary collapse
- REDIS_URL =
'REDIS'
- REDISTOGO_URL =
'REDISTOGO_URL'
- DEPRECATION_MSG =
"\n" + "*** Warning: As of version 4.0 of rhoconnect, the rake command will be deprecated. ***\n" + "*** Use the corresponding rhoconnect commands instead. ***\n" + "*** Type 'rhoconnect help' for more information on these commands. ***\n" + "\n"
- ROOT_PATH =
Dir.pwd
Constants included from Rhoconnect
Rhoconnect::API_TOKEN_HEADER, Rhoconnect::API_VERSION, Rhoconnect::APP_NAME, Rhoconnect::CLIENT_ID_HEADER, Rhoconnect::CURRENT_APP, Rhoconnect::CURRENT_REQUEST, Rhoconnect::CURRENT_USER, Rhoconnect::FAST_CUD_API_URI_REGEXP, Rhoconnect::OLD_API_URI_REGEXP, Rhoconnect::PUSH_API_URI_REGEXP, Rhoconnect::SYSTEM_API_URI_REGEXP, Rhoconnect::VERSION
Instance Method Summary collapse
Methods included from Rhoconnect
#bootstrap, #camelize, #check_and_add, #check_default_secret!, #check_for_schema_field!, #check_hsql_lib!, #compute_token, #create_admin_user, #create_predefined_source, #expire_bulk_data, #extract_api_user, #extract_current_user, #get_config, #get_random_uuid, #get_token, #getelement, #is_admin_route, #is_client_route, #is_clients_non_admin_route, #is_login_required, #lap_timer, #log, #register_predefined_source, #setelement, #source_config, #start_app, #start_timer, #timenow, #under_score, #unzip_file
Instance Method Details
#do_get_api_token(params, user) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rhoconnect/api/system/login.rb', line 9 def do_get_api_token(params, user) if user and user.admin == 1 and user.token user.token.value else raise ApiException.new(422, "Invalid/missing API user") end end |