File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ type tenantRepository interface {
6767}
6868
6969// platformPaths lists URL path prefixes that operate at the platform level
70- // (e.g., tenant creation, listing tenants) and do not require tenant context.
71- // Requests matching these prefixes bypass tenant resolution entirely.
72- // Both REST (gRPC-Gateway transcoding) and Connect/gRPC paths are listed
73- // because the Vanguard transcoder accepts requests in either format.
70+ // (e.g., tenant creation, identity provider endpoints) and do not require
71+ // tenant context. Requests matching these prefixes bypass tenant resolution
72+ // entirely.
7473var platformPaths = []string {
7574 "/v1/tenants" , // REST transcoding path
7675 "/meridian.tenant.v1.TenantService/" , // Connect/gRPC path
76+ "/dex/" , // Embedded OIDC identity provider
7777}
7878
7979// IsPlatformPath returns true if the request path is a platform-level endpoint
Original file line number Diff line number Diff line change @@ -938,6 +938,12 @@ func TestIsPlatformPath(t *testing.T) {
938938 assert .True (t , IsPlatformPath ("/meridian.tenant.v1.TenantService/CreateTenant" ))
939939 assert .True (t , IsPlatformPath ("/meridian.tenant.v1.TenantService/GetTenant" ))
940940
941+ // Dex OIDC identity provider paths
942+ assert .True (t , IsPlatformPath ("/dex/auth" ))
943+ assert .True (t , IsPlatformPath ("/dex/callback" ))
944+ assert .True (t , IsPlatformPath ("/dex/keys" ))
945+ assert .True (t , IsPlatformPath ("/dex/token" ))
946+
941947 // Non-platform paths
942948 assert .False (t , IsPlatformPath ("/v1/accounts" ))
943949 assert .False (t , IsPlatformPath ("/v1/parties" ))
You can’t perform that action at this time.
0 commit comments