I appreciate the reply. I'll take a look at the ASP.NET docs.

By on 3/24/2015 4:16 PM ()

Additional:

What happened to the OAuth Package? Available for Websharper 3?

At least I had found no way to get this package (even with login as a registered user)...

By on 3/24/2015 2:18 PM ()

Did you configure our Nuget feed correctly? Oauth should be in there. If you are having trouble, email support at websharper-support@intellifactory.com, thanks!

By on 3/24/2015 11:14 PM ()

To give a slightly more complete answer, we had been trying to move away from ASP.NET authentication and to provide a more server-independent authentication scheme, but have not succeeded to decouple WebSharper apps completely (yet). This means that your best bet at the moment for handling authentication is via the relevant functionality (request handling and user management) from ASP.NET through the thin wrappers pointed out by Istvan.

In addition to the above in authentication, WebSharper sitelets provide basic authorization through the Sitelet.Protect combinator, that checks for authenticated users and applies an additional predicate to determine access rights before serving content (or else it redirects to a given page, usually to one where the user can log in.) You can find the relevant bits on the above documentation page.

By on 3/24/2015 7:16 AM ()

You are right. I didn't find any relevant docs for handling authentication and authorization with WebSharper. That being said WS doesn't really provide much over the tools of ASP.NET in that regard, it just gives you a thin wrapper over HttpContext and its User property. This handles the session and the authentication cookie automatically. You can use it in conjunction with Membership for example.

By on 3/24/2015 3:55 AM ()

Just for reference: the documentation page for web contexts.

By on 3/24/2015 6:53 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper