Sha256: b7ba132e6b08e6a9b7771630f37d2370afc37feb3902652d124ccdbc1e9d7198
Contents?: true
Size: 620 Bytes
Versions: 15
Compression:
Stored size: 620 Bytes
Contents
class RhoconnectConsole::Server get "/heroku/resources/:id" do begin # check heroku addon started app halt 403 unless ENV['INSTANCE_ID'] == params[:id] && params[:token] == ENV['API_TOKEN'] # rhoconnect authentication session[:login] = 'rhoadmin' session[:connect] = 'direct' session[:token] = RhoconnectApi::get_token(session[:server],session[:login],ENV['PSWRD']) rescue Exception => e session[:token] = nil halt 403 end response.set_cookie('heroku-nav-data', :value => params[:nav], :path => '/') redirect url_path('/'), 303 end end
Version data entries
15 entries across 15 versions & 1 rubygems