emiltin
unread,Mar 12, 2011, 10:09:16 AM3/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Devise
hi,
i'm using devise 1.2.rc with the support for omniauth. i'm using this
for login via facebook.
my site uses subdomains. this causes two problems:
1.
i use user_omniauth_authorize_path(:facebook) to place a 'login via
facebook' link on a page on a subdomain. this link will contain the
subdomain. when it's clicked, facebook barks, since the subdomain
doesn't match the domain for my facebook app.
as a workarond for this problem, i'm stripping the subdomain from the
login link.
2.
but stripping the subdomain from the login link means that after the
user logins on facebook, he/she is redirected back to my main domain,
instead of the subdomain where he/she clicked the original login
link.
how can i solve this frustrating problem?
thank you!
emil tin