Skip to content

Instantly share code, notes, and snippets.

@craigplummer
Created July 29, 2016 16:01
Show Gist options
  • Save craigplummer/b3334d0b279853a2faf3815b57b3bfb9 to your computer and use it in GitHub Desktop.
Save craigplummer/b3334d0b279853a2faf3815b57b3bfb9 to your computer and use it in GitHub Desktop.
Using Microsoft ADFS with Ruby on Rails and Omniauth - omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do
provider :wsfed,
:issuer_name => "http://adfs.example.com/adfs/services/trust",
:issuer => "https://adfs.example.com/adfs/ls/",
:realm => "https://myapp.com",
:reply => "https://myapp.com/auth/wsfed/callback",
:saml_version => "1",
:id_claim => "upn",
:idp_cert_fingerprint => "2ds.........."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment