Skip to content

Instantly share code, notes, and snippets.

@craigplummer
Created July 29, 2016 15:44
Show Gist options
  • Save craigplummer/6d2bb2f8e2969082761149393dbfc717 to your computer and use it in GitHub Desktop.
Save craigplummer/6d2bb2f8e2969082761149393dbfc717 to your computer and use it in GitHub Desktop.
Using Microsoft Azure AD for API Authentication with Rails and Warden - application.rb
config.middleware.insert_after ActionDispatch::ParamsParser, Warden::Manager do |manager|
manager.default_strategies :azure_ad_json_web_token
manager.failure_app = UnauthorizedController
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment