saaskit | A developer toolkit for building SaaS applications | Frontend Framework library
kandi X-RAY | saaskit Summary
kandi X-RAY | saaskit Summary
[Join the chat at SaasKit is a .NET toolkit for building SaaS (Software As A Service) applications. The goal of the project is to help developers build SaaS products without getting in the way. It aims to be platform agnostic and as simple to use as possible. [ASP.NET MVC 5 / Web API 2] [ASP.NET Core] You can contribute in a number of ways. If you have questions or would like to discuss the future development of SaasKit, please join us on [Gitter] or create a GitHub issue. It’s always a good idea to chat with us before embarking on a big pull request to ensure your developments align with the goals of the project. This project is open source and I do my best to support it in my spare time. If you’d like to discuss commercial support options or need help implementing multi-tenancy or building SAAS applications in .NET then [get in touch] mailto:info@saaskit.net). If you want to check my credentials - check out [my blog] or [Fabrik] the SAAS startup I built on the .NET stack.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of saaskit
saaskit Key Features
saaskit Examples and Code Snippets
Community Discussions
Trending Discussions on saaskit
QUESTION
I have an IdentityServer 4 setup using SaasKit to support multi-tenant URL paths. This allows me to access the single IS4 instance in a multi-tenant way like so:
https://localhost:5000/tenant/tenant1/.well-known/openid-configuration
The IS4 instance uses a single database for client/scope configuration rather than one per tenant. Only the users database is separated per tenant.
My issue is that a client only ever has one configuration and so has one RedirectUri and PostLogoutRedirectUri, and these values must be tenant specific URL paths otherwise the callback won't be handled in the context of a tenant in the client app.
So, I can specify in my client app's tenant-specific OpenIdConnectOptions new values for CallbackPath, SignedOutCallbackPath and RemoteSignOutPath, e.g. like this:
options.CallbackPath = $"/tenant/{tenant}{options.CallbackPath}";
but obviously this requires the relevant tenant fragment to be included in the client's config RedirectUri property otherwise IS4 will invalidate the redirect uri.
Whilst I could use dynamic clientIds from the client app, I'd prefer not to create a tenant-specific client config in IS4 for each tenant, and deal with the management issues. Likewise, I'd prefer not to add all possible tenant-specific redirect URIs to the single client's config.
Instead, is it possible to implement and register with IS4 some custom components that supports the following functionality, and if so which interfaces should I implement?
- A parameterized redirect URI path so the following can be specified:
https://localhost:5000/tenant/{tenant}/signin-oidc
- Resolving a parameterized URI path into a real path when redirection is required.
ANSWER
Answered 2018-Apr-17 at 10:23You can implement a custom redirect URI validator.
For that, you need to create a class that implements IRedirectUriValidator
and then register it like this:
QUESTION
How is it possible to get duplicate entry error from this auto scaffold from .net identity code:
...ANSWER
Answered 2019-May-31 at 20:34Ok attempting to replicated this in a clean project i managed to figure it out. So the application is multi-tenant, each identity user has a one on one relation with a tenant.
Using SaasKit i was caching the database model Tenant into memory, while creating a new user like so:
QUESTION
I have had success in implementing multi-tenancy in MVC applications using Saaskit. The applications have a separate db for each tenant. I would like to implement something similar in a webforms project. Can anyone point me in the right direction? Is it even possible?
Must have:
- Tenant detection based on domain/url
- Must support db per tenant
ANSWER
Answered 2019-Apr-04 at 09:33Default Membership API should suffice the requirements.
If not, consider http://www.asp.net/general/videos/how-do-i-create-a-custom-membership-provider
Refer tutorials> http://www.asp.net/security/tutorials
Videos http://www.asp.net/security/videos
Best practices are explained in the above tutorials.
QUESTION
I've created a .NET Core API Controller, and in the POST method, I'm trying to use the CreatedAtActionResult method to include the route as a Location Header in my response.
...ANSWER
Answered 2019-Apr-23 at 19:32Try setting CompatibilityVersion.Version_2_0
or 2.1
instead of 2.2
?
EndpointRouting is quite a big change under the covers of 2.2, and your 3rd party add-on might not be compatible.
Setting compatibility back to 2.1 will typically not require any code changes in your controller, so it's fairly low-cost.
QUESTION
Bakground: I want to develop a multi-tenant application in ASP.NET Core and have been looking into Ben Fosters Saaskit library which seems to provide good solutions for common problems in multitenancy applications.
Problem:
The SaasKit have a UsePerTenant
method which is nice for doing different things per-request depending on current tenant.
My goal is to use the UsePerTenant
method combined with different IOptions
objects injected via dependency injection. This can be used in the authentication middleware like
ANSWER
Answered 2018-Apr-25 at 15:52I have found a good way to get per tenant options for any type of ASP.NET Core options, including cookie or openID Connect. I have wrapped this up into a framework called Finbuckle.MultiTenant.
It basically boils down to a setup that looks like this:
QUESTION
I have a base abstract context which has a couple hundred shared objects, and then 2 "implementation" contexts which both inherit from the base and are designed to be used by different tenants in a .net core application. A tenant object is injected into the constructor for OnConfiguring to pick up which connection string to use.
...ANSWER
Answered 2018-Apr-25 at 00:09As I expected your problem has nothing to do with multitenancy as such. You've implemented it almost entirely correctly, and you're right, you do not need that additional registration, and, btw, these two (below) too because you register them in tenant's scopes a bit later:
QUESTION
We are trying to use saaskit with Identity Server 4 to make multi-tenant application using Identity Server.
Our requirement is as follows.
We have common login page for all clients. However, once client user will get logged in, we are showing the client list to which user has access and on click of client name user will be redirected to respective clients dashboard.
To achieve this we have used below kind of approach.
- Login, client list page added in Identity Server project.
- When user clicks desired client, it will be redirected to client project(Here we have already set the dashboard url to client).
- In client project based on url(For e.g. clientname/home/dashboard) we are resolving the client using saaskit.
- So now it is supposed to show the dashboard page, however we have added [Authorize] attribute to the dashboard method because of this it is trying to call account/login method. But here, the method is not called from server project instead it is searching in client project(which is not available) and resulting into error.Also, trying to append ReturnUrl of dashboard to it.
So, can anyone tell what is the issue and is the project structure is correct ?
...ANSWER
Answered 2017-Jul-18 at 22:06When you click on the Client link in the IdentityServer portal, it should bounce you over to your client, which should then immediately begin the login process by bouncing you back through IdentityServer and finally back to the Client again.
IdentityServer --> Client --> IdentityServer --> Client.
Remember, just because the User has signed into IdentityServer, doesn't mean they have an cookie for the client application. The sign-in process/redirects still have to be performed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install saaskit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page