This project is read-only.

Make SSO with orchard as external

Topics: Customizing Orchard
Feb 21, 2011 at 10:13 AM
Edited Feb 21, 2011 at 10:44 AM

Hi all,

i'm trying to make orchard as an external application of my website.

I want to make a sso because:

-the user have to be logged directly when he come from my website

-the access is only authorised for my website registrated users


Is their a simple way to do this ?


i have already an authentication module which generate an identity.

If i can use this one on orchard, it should be great.



i'm currently trying to find a  place where when a user open a orchard content, i will test if he is connected (in orchard) or come from my website (a token will be set in url)

next i will check this token and if its Ok, log a specific user of Orchard in . (like MyWebsiteUser)

i dont care to know which user is connected especially.

Where is the best place to make my token test and  SignIn if the user is not connected ?


Thanks !

Feb 21, 2011 at 1:41 PM

Check this thread:

Maybe you'll fine some inspiration there.

If you want to test if user is connected at every request, creating your own filter (implementing both Orchard.Mvc.Filters.FilterProvider and IActionFilter) is the right way to achieve that.


Feb 21, 2011 at 3:08 PM

Ok thanks for the advice :)


I'm a newbie in using mvc (first project using this way of programing)

where can i implement theses filters ?


if i make a new module , how can i set routes or something like this to use my filter ?

i'm looking for an exemple in Orchard modules , but i don't find anything.



Feb 28, 2011 at 8:54 AM
Edited Feb 28, 2011 at 9:51 AM

Up ?^^


I'm trying to make a module for my filter but i don't see how can i do this without modifying orchard core ...

I currently take example on  ThemeFilter.




sorry for this Up


Finaly it work great :)