Flatten compliance portal package layout

Remove the root complianceportal package and the resolver
facade that existed only to break an IAM import cycle. Admin
policies, domain URL helpers, and actions live under
management; visitor OAuth metadata, brand URLs, and public
read paths live under visitor. Drop the duplicate trust API
magic-link mutations now that Connect handles portal auth, and
stop IAM from owning compliance page email branding.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-17 16:19:39 +02:00
parent 4cec74c1a1
commit 7e0d187dcf
57 changed files with 737 additions and 1061 deletions

View File

@@ -15,23 +15,23 @@
package complianceportal
import (
portal "go.probo.inc/probo/pkg/complianceportal"
"go.probo.inc/probo/pkg/complianceportal/visitor"
)
const (
VisitorOAuthScope = portal.VisitorOAuthScope
VisitorOAuthScope = visitor.VisitorOAuthScope
GraphQLPath = "/graphql"
CIMDMetadataPath = portal.CIMDMetadataPath
BrandLogoPath = portal.BrandLogoPath
BrandDarkLogoPath = portal.BrandDarkLogoPath
CIMDMetadataPath = visitor.CIMDMetadataPath
BrandLogoPath = visitor.BrandLogoPath
BrandDarkLogoPath = visitor.BrandDarkLogoPath
OAuthInitiatePath = "/initiate"
OAuthCallbackPath = portal.OAuthCallbackPath
OAuthCallbackPath = visitor.OAuthCallbackPath
)
func CIMDClientIDURL(portalBaseURL string) (string, error) {
return portal.CIMDClientIDURL(portalBaseURL)
return visitor.CIMDClientIDURL(portalBaseURL)
}
func OAuthCallbackURL(portalBaseURL string) (string, error) {
return portal.OAuthCallbackURL(portalBaseURL)
return visitor.OAuthCallbackURL(portalBaseURL)
}