Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed invalid links

...

Advanced Tables - Table Plus
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Node name

Value

Mgnl n
fallback

 

Mgnl n
travel

 


Mgnl n
domains

 

Mgnl n
travel-demo

 


Mgnl p
name

travel-demo.magnolia-cms.com

Mgnl n
mappings

 


Mgnl n
website

 


Mgnl p
URIPrefix

 


Mgnl p
handlePrefix

/travel

Mgnl p
repository

website

Mgnl n
templates

 


Mgnl n
theme

 


Mgnl n
i18n

 


Mgnl n
sportstation

 

Mgnl n
domains

 


Mgnl n
sportstation

 


Mgnl p
name

sportstation.magnolia-cms.com

Mgnl n
mappings

 


Mgnl n
templates

 


Mgnl n
theme

 


Mgnl n
i18n

 


Mgnl p
extends

../travel

Cross-site security filter

...

Advanced Tables - Table Plus
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Node name

Value

Mgnl f
server

 

Mgnl f
filters

 


Mgnl f
...

 


Mgnl f
crossSite

 


Mgnl n
bypasses

 


Mgnl n
dotMagnolia

 

Mgnl n
resources

 


Mgnl n
resolvers

 


Mgnl n
allToAll

 


Mgnl p
enabled

 true

Mgnl p
fromDomain

.*

Mgnl p
toSite

.*

Mgnl p
class

info.magnolia.multisite.filters.CrossSiteSecurityFilter

Mgnl p
enabled

 true

...

The example resolvers below grant access to the travel site via www.via https://travel-demo.magnolia-cms.com/ and to the sportstation site via www.via https://sportstation.magnolia-cms.com/. This is adequate to prevent cross-site access. If a user requests the travel site via www.https://sportstation.magnolia-cms.com/ they will get a 404 error.

Advanced Tables - Table Plus
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Node name

Value

Mgnl f
server

 


Mgnl f
filters

 


Mgnl f
crossSite

 


Mgnl n
bypasses

 

Mgnl n
resolvers

 


Mgnl n
allToAll

 


Mgnl p
enabled

 false

Mgnl p
fromDomain

.*

Mgnl p
toSite

.*

Mgnl n
travel

 


Mgnl p
enabled

true

Mgnl p
fromDomain

travel-demo.magnolia-cms.com

Mgnl p
toSite

travel

Mgnl n
sportstation

 


Mgnl p
enabled

 true

Mgnl p
fromDomain

sportstation.magnolia-cms.com

Mgnl p
toSite

sportstation

You can test cross-site security by adding these configurations on the public site and requesting content at httpat https://sportstation.magnolia-cms.com:8080/magnoliaPublic/travel.html or http or https://travel-demo.magnolia-cms.com:8080/magnoliaPublic/sportstation. html. The requests should result in 404 errors.

...

  1. On the public instance, create a new role, for example cross-site
  2. Assign the following ACL to the role.

  3. Now when the anonymous requests content at httpat https://travel-demo.magnolia-cms.com:8080/magnoliaPublic/sportstation.html the sportstation the standard login form is displayed.

...

  • Multisite filter (
    Javadoc
    0info.magnolia.multisite.filters.MultiSiteFilter
    classNameinfo.magnolia.multisite.filters.MultiSiteFilter
    renderTypeasynchronous
    ) initializes multidomain support and makes domain related properties available in the aggregation state. This filter finds a domain name that matches a name configured in a site definition.
  • Cross site security filter (
    Javadoc
    0info.magnolia.multisite.filters.CrossSiteSecurityFilter
    classNameinfo.magnolia.multisite.filters.CrossSiteSecurityFilter
    renderTypeasynchronous
    ) handles cross-site security. It controls site access based on registered resolvers. This filter imports a 
    Javadoc
    0info.magnolia.multisite.CrossSiteAccessResolver
    classNameinfo.magnolia.multisite.CrossSiteAccessResolver
    renderTypeasynchronous
    that makes a number of properties available in the filter configuration.
  • Site URI security filter (
    Javadoc
    0info.magnolia.multisite.filters.SiteUriSecurityFilter
    classNameinfo.magnolia.multisite.filters.SiteUriSecurityFilter
    renderTypeasynchronous
    ) provides site-aware URI security. This filter extends the Community Edition URI security filter that checks if the current user has permissions to the requested resource. The following permissions are taken into consideration:
    • URI ACLs of the user's roles.
    • URI ACLs of the roles in the user's groups.