Sha256: b512e4a1e0bd5dd3623702f2ef8707f7470e0ca84683d0969ba6273aa8f88ea5
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
require "devise/omniauth_callbacks_controller" class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController def shibboleth user = resource_class.from_omniauth(request.env["omniauth.auth"]) set_flash_message :notice, :success, kind: "Duke NetID" sign_in_and_redirect user end def after_sign_in_path_for(resource) request.env["omniauth.origin"] || super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddr-models-1.11.0 | app/controllers/users/omniauth_callbacks_controller.rb |