Menu
  • HOME
  • TAGS

Microsoft Graph API Accessing basic info of a user that is outside tenancy

oauth,ms-office,ews,multi-tenant,azure-active-directory

Ah-ah! Forget the use of your tenant ID when talking with the Graph API if you develop a multi-tenant app with OAuth! The equivalent to "common" when requesting a token for a user in or outside your tenancy is... "myorganization"! This will work: https://graph.windows.net/myorganisation/me?api-version=2013-11-08 Oh, it was clearly written in...

Moving an NHibernate-heavy application from single-tenancy to multi-tenancy with multiple schemas

c#,nhibernate,fluent-nhibernate,multi-tenant,fluent-nhibernate-mapping

Not tested, but you can set in the SessionFactory (technically in its configuration) the default schema name. The property is hibernate.default_schema. So you could have multiple SessionFactory, one for each schema. Clearly you mustn't set the scema name at the Entity level. Something like: var config = new Configuration(); ......

Dynamic paths for laravel 5

laravel,laravel-5,multi-tenant

views Using a service provider you can use the following in your boot() method for views to be available in the root namespace (view('your-view') instead of view('package::your-view')): $this->app['view']->addLocation('/your/new/location'); lang Using a service provider you can use the following in your boot() method where $path is the new path for your...

Is it possible to have an anonymous controller in asp.net MVC 5?

asp.net-mvc,controller,multi-tenant

I have no idea what page slug is but here's my solution on how to achieve the routing you requested. I made a custom ControllerFactory which handles the url and passes it to controller. This ControllerFactory constructs the controller we use to handle folder-route requests. We get the path from...

Update all schemas with multitenancy architecture

java,spring,hibernate,jpa,multi-tenant

Try using FlywayDB instead of hibernate.hbm2ddl.auto which shouldn't be used in production anyway. An incremental schema update can provide you a guarantee that the product environment can be safely updated, once you tested the incremented scripts on a QA server.

VS 2012 express debugging another project

c#,asp.net-mvc-4,debugging,visual-studio-2012,multi-tenant

I've done it again... been puzzling over the problem for quite a while and then worked out how to do it. In the "tenant" project properties, click "Web". CHECK "Override application root URL" and use the same URL as the host website. Basically, the host is using IIS Express, on...

Multi-tenant ASP.Net MVC application - Where to store tenant specific data

asp.net-mvc-4,multi-tenant

In my experience in building multi-tenant app's this use-case can be handled as follows, Data remains in the Db Upon a tenant login, we might require their config values, we can fetch from the db store and add them to a cache [redis - distributed cache] similarly for each tenant...

Datastore partition using namespace api

google-app-engine,gae-datastore,multi-tenant

How many partition(of one datastore) can be created using namespace api? Namespaces help you increase your app scalability, you have no limit number Is there any limit on the size of each partition? App engine Free quota is fixed, it's the only limit. If you need to activate billing, you'll...

Apartment gem migrations inside Rails Engine

ruby-on-rails,ruby,rake,multi-tenant,apartment-gem

You should have a Rakefile for the engine here: <app_root>/engines/engine_name/Rakefile Try adding this line to the bottom of it to load the rake tasks from the apartment gem: load 'tasks/apartment.rake' ...

BoneCP, other connection pools and the ability to switch Schemas

connection-pooling,database-schema,multi-tenant,bonecp

I abondoned BoneCP for HikariCP. All needs are met.

Hibernate multi-tenancy create schema during runtime

java,spring,hibernate,multi-tenant,multi-tenancy

I came up with a solution that solves my problem. I hope it is useful to someone out there. So the main problem came down to the Hibernate restriction of creating a schema for a new client during runtime while in multi-tenant configuration. "Hibernate does not support automatic schema export...

How to do RESTful deep linking when using multi-tenency with scopes and CanCan

ruby-on-rails,cancan,multi-tenant,deep-linking

It sounds like you need to verify that the user is logged in before trying to find the task. Do you have a before_action :authenticate_user! or similar in your TasksController?

Referencing a value from a spring config

java,spring,multi-tenant

You can not create bean tag in configuration file without providing class implementation. If you want to inject the value of fields, you have to go for properties file instead. Create property file as below: application.properties theId=1001 Load property file in your configuration: <bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"> <property name="ignoreUnresolvablePlaceholders" value="true"/> <property name="locations">...

multi-user MS Access Database- how to lock completely

c#,ms-access,locking,multi-tenant

To open a ACCDB in exclusive mode you need to add this key/value to your connection string Mode=Share Exclusive; This will block other user to connect to the same database until you close and dispose the connection that opens the database in this way. If I remember well, the possible...

Adding domain name to html page in Play framework 2 using java

java,model-view-controller,playframework-2.0,multi-tenant

You have several options: Use Java reflections for rendering templates in your action per domain or use i.e. switch statement in your action to render required view per domain or use one view and use @if statement in it to display (or hide) blocks available only for specific domain Finaly...

Multi-Tenant Application Insights in MS Azure

azure,multi-tenant,ms-application-insights

You can attach custom properties and metrics to all telemetry types as described in the documentation: http://azure.microsoft.com/en-us/documentation/articles/app-insights-custom-events-metrics-api/#properties

How do subdomains work?

c#,asp.net-mvc-4,iis,subdomain,multi-tenant

My intuition (though I haven't verified this for ASP.Net MVC) is that it has 'reserved' the url http://+:80/ for your application - this means that any domain name on port 80 that resolves to localhost (*.localhost, 127.0.0.1, hosts file entires etc.) will be routed (by the OS and IIS) to...

Symfony2: Customize database connection, cache and log folders, based on incoming request

php,symfony2,multi-tenant

I agree with Jurgis Gregov. You should change in your web/app.php line: $kernel = new AppKernel('prod', false); to: $kernel = new AppKernel($_SERVER['HTTP_HOST'], false); The first argument of AppKernel is environment name After that you can create in app/config a new config files with name: config_name.yml Where you can set doctrine...

How to secure Rails app with several companies sharing application and databases [closed]

ruby-on-rails,ruby,postgresql,devise,multi-tenant

Properly isolating customers from each other is harder than it seems. Its not just a one time event, you will have to keep it in mind and continue to deal with it as you grow. And data segregation is just one part of the problem. All of your resources, servers,...

Claims-based auth in a SaaS app with Users many-2-many to Tenants

asp.net,asp.net-web-api,asp.net-identity,multi-tenant,claims-based-identity

The way we approach this is that we restrict claims to current tenant only. Switching tenants always means dropping the current session by signing out and then resigning to another tenant so that a new token is issued and a new cookie at the relying party side is created. Personally,...

How to addTenant to TenantScope with Confide/Laravel

php,laravel,multi-tenant

For future reference: The solution was simple! I will use a route filter: Route::filter('multitenant', function(){ TenantScope::addTenant('user_id', Auth::user()->id); }); and use this filter Route::group(array('before' => 'auth|multitenant'), function(){... ...

SQL, a 'multi-tenant' issue: how to separate common data from user's data?

sql,sqlite,multi-tenant

I think, depending on how complex schema should be, there are several ways to improve it. In any system you should decide what data you will need to select, edit or delete commonly, it can really help to choose right model. Complete separation users from persons: users (id, username, password,...

Implement multitenancy using generated endpoints and gae

java,android,google-app-engine,gae-datastore,multi-tenant

There are several namespace enabled APIs supported in App Engine i.e. Datastore, Memcache, Task Queue and Search. It is not clear from your question as to how to plan to use the namespaces in your application. I am assuming that you want to save and/or retrieve the data from a...

Azure DocumentDB Multi-Tenant Architecture

azure,multi-tenant,multi-tenancy,azure-documentdb

There's no such thing as a one-size-fits-all answer when it comes to partitioning / sharding tenant data. Generally, how you partition data depends on your application's query patterns as well as the resource requirements per tenant (in terms of both storage and throughput). Just keep in mind that collections are...

manage containers from another container, docker

docker,multi-tenant,coreos

run the controlling container with the Docker client & socket mounted and you will be able to control the docker deamon from within your containers (run docker within docker) $ docker run \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /usr/bin/docker:/usr/bin/docker \ -v /usr/lib/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02 \ ubuntu docker --version Docker version 1.1.2, build d84a070...

SOLR QueryElevationComponent for Multi-tenant Support

solr,multi-tenant

so you are using a single core/collection and the multitenancy is enforced by a fq=customer_id:A right? Well, what about enforcing the multitenancy via a one collection per customer? This way each one can has its own conf (including elevate stuff). About your second question, I did not check but probably...

Google app engine: Is it possible to allow users to add their own domain for a Multitenancy app?

google-app-engine,multi-tenant

You can add a custom domain for App Engine through Google Domains. With the domain registered through Google Domains, they provide an interface to point the domain to a particular App Engine ID using Google Synthetic Records. More info on Google Domains can be found at: https://domains.google.com/about/features.html You can then...

Different databases in different part of vhosts ejabberd

multi-tenant,ejabberd,bosh

No, you cannot have port reserved specifically for some vhosts. Port are shared for vhost. However, you can have a different databases for different vhost. See ejabberd documentation for reference: http://docs.ejabberd.im/admin/guide/configuration/#virtual-hosting In the following example, two vhosts are configured to use different database backends: host_config: "example1.com": auth_method: odbc odbc_type: odbc...

Yii2 Structure for Multitenancy System?

yii2,multi-tenant

I have done something similar some time ago. Besides what you have done I have also changed the User component too to log in a different kind of user. You should also add more folders in the tests so you can test that part too. Anyway that should be enough...

Multi-Tenancy with Hibernate and Spring Data JPA, how does schema approach work

hibernate,spring-mvc,spring-data-jpa,multi-tenant

Hibernate communicates with the underlying database using a Session that is an abstraction over a JDBC connection. So, whenever the application code attempts to perform a database operation using Hibernate, the Hibernate Session obtains a JDBC connection and then executes regular SQL over the connection so obtained. In the schema...

Auto-migrations to dynamic contexts for multi tenant databases

c#,entity-framework,multi-tenant,code-first-migrations

You can add following line before the first database call: Database.SetInitializer<MyContext>(new MigrateDatabaseToLatestVersion<MyContext, MyContextConfiguration>()); It will execute all pending (or automatic) migrations on MyContext creation....

Multi-Tenant how to overwrite default values?

mysql,ruby-on-rails,content-management-system,multi-tenant

Depends on your tables structure, if there is one record for user you can use select * from ( select * from user_styling limit 1 union all select * from default_styling limit 1 ) tmp limit 1 If there is record in user_style that record is returned, if not, take...

Managing task queues in a multi-tenant application - GAE

google-app-engine,multi-tenant,task-queue

You may not have that customer a year from now, or the terms might change, etc., not to mention all the technical challenges. Schedule in the future approach would not work. I don't see any difference between the other two approaches, unless you have millions of name spaces. I don't...

multi-tenancy solution with django

python,django,multi-tenant

You could try emulating the future real world as close as possible by editing your hosts file /etc/hosts and putting in there: 127.0.0.1 store1.saas.com 127.0.0.1 store2.saas.com ... etc Then you can navigate to your localhost by store1.saas.com and so on....

Spring security authentication with 3 fields instead of just username and password

java,grails,spring-security,multi-tenant

Try something like this (code isn't tested): @Component public class BasicAuthenticationProvider implements AuthenticationProvider { @Autowired private UserService registerService; @Override public Authentication authenticate(Authentication authentication) throws AuthenticationException { String email = authentication.getName(); String password = (String) authentication.getCredentials(); String domain = (String) authentication.getDetails(); User user = registerService.getUserByEmail(email); if (user == null) { throw...

No lookup on start for datasources in hibernate multi-tenant application

java,hibernate,datasource,multi-tenant

I found a way to achieve my goal, but the solution is not perfect. When I declare my class MultiTenantConnectionProviderImpl, in the method getAnyConnection(), I give a connection from a default database, which is shared by all tenants : public class MultiTenantConnectionProviderImpl implements MultiTenantConnectionProvider, Stoppable { @Override public Connection getAnyConnection()...