gitops-operator
gitops-operator copied to clipboard
Cannot configure OIDC SSO to a custom domain
Describe the bug We wanted to use OICD instead of DEX and point it to our SSO provider
To Reproduce Steps to reproduce the behavior:
- Create a customer URL for ArgoCD = eg https://myteamsArgo.company.com
- Verify clicking on https://myteamsArgo.company.com works and ArgoCD loads fine with an SSL cert
- Configure OIDC in the Operator
- Click on the SSO button and you get Invalid redirect URL: the protocol and host (including port) must match and the path must be within allowed URLs if provided
Expected behavior It redirects me to SSO provider and logs in to ArgoCD Applications, somehow the domain is hardcoded somewhere for a redirect
Screenshots If applicable, add screenshots to help explain your problem.
Additional context It works fine on the Domain that the operator deploys eg https://openshift-gitops-server-openshift-gitops.clustername-1f3d82-0000.us-south.containers.appdomain.cloud/
Could you provide your ArgoCD CR here ? Have you tried setting .spec.server.host to myteamsargo.company.com and see if that resolves the issue ?
Note: A restart of the ArgoCD server might be required for this change to take effect immediately.