gitops-operator icon indicating copy to clipboard operation
gitops-operator copied to clipboard

Cannot configure OIDC SSO to a custom domain

Open garyd2 opened this issue 3 years ago • 1 comments

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:

  1. Create a customer URL for ArgoCD = eg https://myteamsArgo.company.com
  2. Verify clicking on https://myteamsArgo.company.com works and ArgoCD loads fine with an SSL cert
  3. Configure OIDC in the Operator
  4. 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/

garyd2 avatar Nov 02 '22 16:11 garyd2

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.

anandf avatar Jul 24 '23 05:07 anandf