example/app.rb in omniauth-pam-1.2.1 vs example/app.rb in omniauth-pam-1.3.0
- old
+ new
@@ -1,7 +1,7 @@
class App < Sinatra::Base
use Rack::Session::Cookie
- use OmniAuth::Strategies::PAM
+ use OmniAuth::Strategies::PAM, email_domain: "localhost.localdomain"
helpers do
def ensure_auth
unless session[:auth]
redirect '/auth/pam'