Comments (1)
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)
- Serializing byte[] cannot be Deserialized.
- CreateTransaction failing HOT 1
- TypeInitializationException when a class have a property that return an XElement value
- TypeInitializationException when deserialiaze a string to a class that have a static property
- Priority of Web Sockets HOT 1
- How to Store values in session
- OrmPostgreSQL HOT 1
- Supporting for redis ZCOUNT command
- WCF helper implementation
- Null reference exception on call to GetAll HOT 2
- Broken link on Project Home HOT 2
- DeSerialising dictionary with type Dictionary<Tuple<string,string>,double>>() does not work
- Wrong Encoding
- ServiceStack.Redis reading large files from Redis server
- ServiceStack.Redis.RedisResponseException
- Db number is fogotten when using pooled clients.
- SOAP request and response wrappers
- Tutorial references ServiceStackHttpHandlerFactory which isn't included in ServiceStack.dll
- Future roadmap suggestion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicestack.