Hi groups users :)

The thing is. I have one django app serving different sites.

site1.myapp.com
site2.myapp.com

The users login via a 3rd party SSO system which is then
redirected(inkl. a valdiation POST) to https://myapp.com/auth/
I can only choose one destination for this POST, so it has to be on my
maindomain.

However. since my users all belong to only 1 "site", I would like
myapp.com/auth/ to log the user into the relevant site, ex.
site1.myapp.com or site2.myapp.com and then redirect them to that
siteā€¦

I could of course just redirect after receiving the validation POST,
but then I wouldn't be able to use all the informations in this post.

Is this at all possible?? or should i go about this in a totally
different way? :)

I should mention that when it comes to the general usage of the app I
have subdomain middleware to ensure that the users always only visit
the subdomain(and data) that their account is valid for.

The reason I want to use subdomains is to make it simple for the users
to remember their account url, while maintaining the pros of having to
maintain just one django app.

thanks. hope you can help :)

kind regards.

pete

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to