Skip to content

Instantly share code, notes, and snippets.

@dpogorzelski
Last active December 26, 2015 05:39
Show Gist options
  • Save dpogorzelski/7102742 to your computer and use it in GitHub Desktop.
Save dpogorzelski/7102742 to your computer and use it in GitHub Desktop.
module OmniAuth::Strategies
class Foo < Shibboleth
def name
:foo
end
end
class Bar < Shibboleth
def name
:bar
end
end
end
Rails.application.config.middleware.use OmniAuth::Builder do
provider :foo, {
:shib_session_id_field => "Shib-Session-ID",
:shib_application_id_field => "Shib-Application-ID",
:debug => false
}
provider :bar, {
:shib_session_id_field => "Shib-Session-ID",
:shib_application_id_field => "Shib-Application-ID",
:debug => false
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment