Is there some out of the box plugin for SAML2 auth or I would have to build mine from scratch?
If there's none, which library would you suggest, earlier I tried Kentor and I like how it's done, too bad I couldn't find their version of ServiceStack auth plugin.
Have a look here.
There's a collection of plug-ins.
Don't roll your own!
Related
Is there a OWIN middleware that can work with a standard .NET 4.6.2 (not Core) framework to valide tokens coming from IdentityServer4.
Something like
https://github.com/IdentityServer/IdentityServer4.AccessTokenValidation
A bug has solved and now by upgrading IdentityServer3.Accesstokenvalidation to "v2.13.0" you can work with tokens come from Idsv4.
for more detail:
https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation/issues/124
Even though the project README.md says OWIN Middleware to validate access tokens from IdentityServer v3. It should in theory still work with IDS4 tokens:
https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation
I have a Xamarin.Mac Unified API project with ServiceStack Client v4.0.38. I get the good old "System.ArgumentException: PclExport.Instance needs to be initialized" when trying to instantiate JsonServiceClient.
If I was on iOS, I would call IosPclExportClient.Configure() and life would be good. However, I can't find the equivalent for Mac. I would expect something like MacPclExportClient.Configure().
Any idea how to get the ServiceStack Client to work on Xamarin.Mac?
The IosPclExportClient should still be available for Unified API Projects as well, e.g:
ServiceStack.IosPclExportClient.Configure();
I can't seem to access ServiceStack.ServiceClient.Web in the new ServiceStack version 4.0.12.
Particularly I'm looking for JsonServiceClient that was present in older version.
Has it been removed? I can't seem to find any documentation online for v4.
It's just ServiceStack.JsonServiceClient now. In the ServiceStack.Client assembly/NuGet package.
I'm currently trying to host a REST webservice on ios/android using Xamarin and monotouch/monodroid. I already successfully have a basic webserver running using HttpListener, but now I would like to host a complete webservice using ServiceStack.
monotouch/monodroid have very limited web hosting capabilities (HttpListener is basically the only way), but ServiceStack can in theory accomodate with that.
It seems to be possible as I found someone who did it: http://www.servicestack.net/mythz_blog/?p=417
The problem is that project does not work anymore on the last monotouch version, and ServiceStack seems to have removed server hosting capabilites in the monotouch/monodroid latest builds...
Xamarin have a fork of ServiceStack (https://github.com/xamarin/ServiceStack) which seems to have hosting capabilities, but the monotouch specific service hosting build does not compile, and the fork seems outdated.
Has anyone succeeded in making the ServiceStack hosting capabilities work on monotouch/monodroid? Or do you have an idea on how to make it work?
You might try this tutorial for self-hosting ServiceStack.
It looks like it will use HttpListener under the hood, but I don't know if the AppHostHttpListenerBase class will compile for MonoTouch/Mono for Android or not.
Ok so after some research, the project to allow ServiceStack self-hosting has been dropped. It had a better luck with the (old) Xamarin version (https://github.com/xamarin/ServiceStack) and could compile it and make it work somehow.
Since I need to be in sync with the latest ServiceStack version, I guess that I have no other choice than to roll my own adaptation, using the old Xamarin branch as a starting point.
Is it possible to run servicestack's built-in clients on the .net client profile framework?
When i change the target framework property in the project settings to ".Net Framework Client Profile" and try to compile i get the following message: the namespace ServiceClient does not exist in the namespace servicestack.
We use servicestack services to send exception reports. We use the JsonServiceClient and feel really comfortable with it. We could change the target framework - but then we have to check all installations for the availability of the full .net framework.
Any idea how to solve this?
Thanks.
From the package contents of the latest ServiceStack.Common package there seems to be no -client version included (See Common Framework and Profile Targeting Examples under NuGet - Creating and Publishing a Package).
You should either change the target framework the full profile or pull the code from ServiceStack's GitHub Repo and try to build it for client profile yourself. The downside of this is that you will loose Nuget's awesome update features...
You could off course file an issue at GitHub for the guys maintaining ServiceStack to add a client profile version of the framework, but I guess that there's a good reason for why it's not there already.