Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Allow wildcard and multi domain authHost option #190

Merged
merged 2 commits into from
Jul 27, 2017

Commits on Jul 24, 2017

  1. Update private-channel.ts

    As described in tlaverdure#195 allow for wildcard domain declaration in authHost option (e.g. authHost = '.myapp.com') so one use the laravel-echo-server with a multi tenant/subdomain system. The currently appropriate domain is retrived from the referer and matched with the wildcard domain declaration (if a wildcard is used).
    tobiasvielmetter committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    dea0d33 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2017

  1. Allow wildcard and multi domain authHost option

    As described in tlaverdure#185 as well as tlaverdure#135:
    - allow for wildcard domain declaration in authHost option (e.g. authHost = '.myapp.com') so one can use the laravel-echo-server with a multi tenant/subdomain system 
    - as well as a multi domain system, where different authentication servers are used. 
    The currently appropriate authentication domain is retrived from the referer and matched with the (optional: wildcard) domain declaration from the authHost option as a whitelist (which can be either an array or a string). In case none is matched with the referer, the last one in the array is taken (in case of string, the only one). 
    @tlaverdure @barryvdh please check. I have done my best to write this up in TS, but I don't have a compile system for this setup, so I have only tested it in vanilla JS and then afterwards added the TS specific types for this PR.
    Thanks!
    tobiasvielmetter committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    fda40bc View commit details
    Browse the repository at this point in the history