Sha256: fcce74a594bd74b4e0b1eadc4ffc2fc560ea2f89aac360077ad7c2e8624332dc

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module Example
  class App < Sinatra::Base
    enable :sessions
    register Sinatra::Auth::Oauthed

    get '/logout' do
      logout!
      'Peace!'
    end

    get '/' do
      authenticate!
      @user = oauthed_user
      "authenticated: #{@user.email}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra_auth_oauthed-0.0.1 spec/app.rb