Created
July 29, 2016 15:44
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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