-
Notifications
You must be signed in to change notification settings - Fork 65
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
Multidomain session/authentication support #267
Comments
@urbanowiczpiotr thanks for the issue - I don't think this was part of our initial design. Can you help me understand your scenario a bit more?
I'm assuming we'd want to address the more complicated of these scenarios which would be both auth and session that have requirements for specific backends. My initial thoughts are that we can use named options for the
/cc @Tratcher @mjrousos as FYI and if you have thoughts on how/if we want to do this |
+1 to @twsouthwick's comment. This scenario isn't covered by the initial design here. If you can share more details on your scenario, @urbanowiczpiotr, that would be great. Sharing auth with multiple backends seems possible if we allow configuring remote app auth multiple times with different scheme names. Session may be trickier, but @twsouthwick's idea of annotating which backend to use in session metadata might work. |
Thanks for response. Answering your questions:
"ReverseProxy": {
"Routes": {
"route1": {
"ClusterId": "cluster1",
"Match": {
"Path": "{**catch-all}",
"Hosts": ["subdomain1.example.com" ]
}
},
"route2": {
"ClusterId": "cluster2",
"Match": {
"Path": "{**catch-all}",
"Hosts": [ "subdomain2.example.com" ]
}
}
},
"Clusters": {
"cluster1": {
"Destinations": {
"destination1": {
"Address": "https://subdomain1.example.com:1234/"
}
}
},
"cluster2": {
"Destinations": {
"destination1": {
"Address": "https://subdomain2.example.com:1234/"
}
}
}
}
} |
Is there any way or plans to support multidomain session and/or authentication scenario? I'm trying to migrate existing ASP.NET SaaS multiple subdomain app (subdomain1.example.com, subdomain2.example.com etc), provided multiple Routes/Clusters in ReverseProxy configuration and it works greats. The next step would be setting RemoteAppUrl in AddRemoteAppClient options, but in this case it must be different for each subdomain.
I've checked both RemoteAppClientOptions and RemoteAppAuthenticationService, but don't know how to do that (easily) without overriding huge part o code.
The text was updated successfully, but these errors were encountered: