Giter VIP home page Giter VIP logo

Comments (1)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
Hi, 

This deprecated group no longer gets monitored. For new Questions/Issues you 
should post them to the Google Group:

https://groups.google.com/forum/#!forum/servicestack

Ask a Question on http://stackoverflow.com or 

File an issue on the current GitHub project:
https://github.com/ServiceStack/ServiceStack/issues

Basically, ServiceStack does not make use of ASP.NET's session or Form 
authentication providers. 
If you want to use them you should host servicestack at a custom path, e.g. 
/api or /servicestack, etc.
http://www.servicestack.net/ServiceStack.Hello/#custompath

Then since anything outside of /custompath is a standard ASP.NET application 
that is unaffected by or visible to ServiceStack.
Once the session is initialized and you're authenticated you can make use of 
the session on the ASP.NET HttpRequest object either at:

var aspNetHttpReq = 
((HttpRequestWrapper)base.RequestContext.Get<IHttpRequest>()).Request;

or via the singleton HttpContext.Current.Request

ServiceStack also provides its own Authentication/Session/Caching provider 
models, you can see an example of this at:
https://github.com/ServiceStack/SocialBootstrapApi/blob/master/src/SocialBootstr
apApi/App_Start/ServiceStackFramework.cs#L138
We intend to publish more information on the new in-build Authentication 
services in the coming weeks.

You can also implement your own Authentication making use of the 
RequestFilters, here's an integration test example implemented with BasicAuth:
https://github.com/ServiceStack/ServiceStack/blob/master/tests/ServiceStack.WebH
ost.Endpoints.Tests/RequestFiltersTests.cs



Original comment by [email protected] on 30 Nov 2011 at 8:14

  • Changed state: Done

from servicestack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.