Class: Pssh::Web
- Inherits:
-
Object
- Object
- Pssh::Web
- Defined in:
- lib/pssh/web.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/pssh/web.rb', line 7 def call(env) if env['HTTP_AUTHORIZATION'] auth = env['HTTP_AUTHORIZATION'].split(' ')[1] username = Base64.decode64(auth).split(':')[0] else username = nil end render 'index', unique_id: Pssh.create_session(username) end |