Skip to content

Instantly share code, notes, and snippets.

@craigplummer
Created July 29, 2016 16:09
Show Gist options
  • Save craigplummer/544cf7d292918cedcc94838113f6c2db to your computer and use it in GitHub Desktop.
Save craigplummer/544cf7d292918cedcc94838113f6c2db to your computer and use it in GitHub Desktop.
Using Microsoft ADFS with Ruby on Rails and Omniauth - sessions_controller.rb
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