-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to define the SSO route's domain? #41
Comments
I am sorry that I am not really following your question without some example code. Maybe post up some of your route file? |
Hi Jimmy, We have several route files, one for each subdomain. The SSO routes aren't defined by us in our route files, but by the package itself. So I'm not sure how that would be helpful. Laravel allows you to bind a route to a (sub)domain (docs). The way the package registers its routes, they are valid on any subdomain that the application listens on. This is undesired behavior, because we don't want someone (for example) hitting We want to bind the route exclusively to the Laravel Nova, Laravel Horizon, and Laravel Telescope are examples of packages that allow you to define the subdomain that the routes are registered on, via a config file. And when Nova (for example) registers its routes, they are then registered only on that subdomain.
So because we've configured that, you can access Nova only on Hope this makes sense. To implement this, I imagine all that's needed is to check a
Just not sure if you can pass |
@nathan-io I just pushed a #44 feature branch, that allows adding a |
Thanks @jimmypuckett , working great! Result of With the
Without that config value being set:
|
OK, I will merge & tag. |
I just pushed 2.7.0. |
Hi,
Not a bug, just a question.
We're using subdomain routing in our Laravel application. Our authentication routes are bound to the "account." subdomain.
Accordingly, I'd like to have the
sso.login
route bound to this subdomain only. It is currently a global route that you can access from any (sub)domain atdiscourse/sso
.Not sure how to accomplish this.
Thank you!
The text was updated successfully, but these errors were encountered: