File: app.rb

package info (click to toggle)
ruby-omniauth-auth0 2.0.0-0%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 144 kB
  • sloc: ruby: 397; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'sinatra'
require 'omniauth-auth0'
require 'dotenv/load'

use OmniAuth::Builder do
  provider :auth0, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], ENV['DOMAIN']
end

enable :sessions
set :session_secret, ENV['SESSION_SECRET']

get '/' do
  'Auth0 OmniAuth Example for Sinatra'
end