Skip to content

Instantly share code, notes, and snippets.

@biot023
Created April 22, 2014 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biot023/11173173 to your computer and use it in GitHub Desktop.
Save biot023/11173173 to your computer and use it in GitHub Desktop.
class DiscourseSsoController < ApplicationController
def login
sso = DiscourseUtils::SingleSignOn.parse( request.query_string )
sso.external_id = current_user.id
sso.username = current_user.login
sso.name = current_user.display_name
sso.email = current_user.email
# NEW CONTENT
sso.shop_name = current_user.get_shop_name
sso.shop_url = current_user.get_shop_url
# /NEW CONTENT
redirect_to( sso.to_url )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment