Created
July 29, 2016 16:09
-
-
Save craigplummer/544cf7d292918cedcc94838113f6c2db to your computer and use it in GitHub Desktop.
Using Microsoft ADFS with Ruby on Rails and Omniauth - sessions_controller.rb
This file contains 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
def create | |
auth = request.env["omniauth.auth"] | |
auth.uid # Gets the UID value of the user that has just signed in | |
# Create a session, redirect etc | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment